Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix codec fallback and generate type imports
[govpp.git]
/
binapigen
/
generator_test.go
diff --git
a/binapigen/generator_test.go
b/binapigen/generator_test.go
index
ddbda99
..
9e5b342
100644
(file)
--- a/
binapigen/generator_test.go
+++ b/
binapigen/generator_test.go
@@
-18,6
+18,15
@@
import (
"testing"
)
"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
func TestBinapiTypeSizes(t *testing.T) {
tests := []struct {
name string