aboutsummaryrefslogtreecommitdiffstats
path: root/binapigen/generator_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'binapigen/generator_test.go')
-rw-r--r--binapigen/generator_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/binapigen/generator_test.go b/binapigen/generator_test.go
index ddbda99..9e5b342 100644
--- a/binapigen/generator_test.go
+++ b/binapigen/generator_test.go
@@ -18,6 +18,15 @@ import (
"testing"
)
+func TestModule(t *testing.T) {
+ const expected = "git.fd.io/govpp.git/examples/binapi"
+
+ impPath := resolveImportPath("../examples/binapi")
+ if impPath != expected {
+ t.Fatalf("expected: %q, got: %q", expected, impPath)
+ }
+}
+
func TestBinapiTypeSizes(t *testing.T) {
tests := []struct {
name string