aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/binapi-generator/definitions_test.go
diff options
context:
space:
mode:
authorOndrej Fabry <ofabry@cisco.com>2020-06-18 08:22:13 +0200
committerOndrej Fabry <ofabry@cisco.com>2020-06-22 14:37:14 +0200
commit94620e85f0bdbb054af07ce3670fadc1f76cfdf0 (patch)
tree7784ddf381c4e08a6a1ece5b55911b47ea8395f3 /cmd/binapi-generator/definitions_test.go
parent280b1c6c83b676ef4e592f4ecf60cb5b54b6a753 (diff)
Refactored binapi generator with message encoding
Change-Id: I5a6abb68b9d058866f94818169300e5c2fc43895 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'cmd/binapi-generator/definitions_test.go')
-rw-r--r--cmd/binapi-generator/definitions_test.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/cmd/binapi-generator/definitions_test.go b/cmd/binapi-generator/definitions_test.go
deleted file mode 100644
index 30c85ae..0000000
--- a/cmd/binapi-generator/definitions_test.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package main
-
-import (
- "testing"
-)
-
-func TestInitialism(t *testing.T) {
- tests := []struct {
- name string
- input string
- expOutput string
- }{
- {name: "id", input: "id", expOutput: "ID"},
- {name: "ipv6", input: "is_ipv6", expOutput: "IsIPv6"},
- {name: "ip6", input: "is_ip6", expOutput: "IsIP6"},
- }
- for _, test := range tests {
- t.Run(test.name, func(t *testing.T) {
- output := camelCaseName(test.input)
- if output != test.expOutput {
- t.Errorf("expected %q, got %q", test.expOutput, output)
- }
- })
- }
-}