diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2020-06-23 14:10:53 +0200 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2020-06-24 08:17:33 +0200 |
commit | ceed73403bdb61387d04be8b47183e9c4a970749 (patch) | |
tree | 3f48a49051672efb44945b279b9f69693bc48540 /binapigen/generator_test.go | |
parent | 94620e85f0bdbb054af07ce3670fadc1f76cfdf0 (diff) |
Fix codec fallback and generate type imports
Change-Id: Idd76c7f19d952939caf153928ac60175845078ff
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'binapigen/generator_test.go')
-rw-r--r-- | binapigen/generator_test.go | 9 |
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 |