X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapigen%2Fgenerator_test.go;h=9e5b3421b60a9a9ce12b1892213ac2affafd0a7a;hb=ceed73403bdb61387d04be8b47183e9c4a970749;hp=ddbda999061c6c6dcffd808496ee70d9fbaf9764;hpb=94620e85f0bdbb054af07ce3670fadc1f76cfdf0;p=govpp.git 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