Browse Source

protoc-gen-go: fix test (#545)

Broken by addition of GoImportPath/GoPackageName.
Damien Neil 8 years ago
parent
commit
2b3479d8d7
1 changed files with 4 additions and 3 deletions
  1. 4 3
      protoc-gen-go/generator/name_test.go

+ 4 - 3
protoc-gen-go/generator/name_test.go

@@ -59,9 +59,10 @@ func TestCamelCase(t *testing.T) {
 
 
 func TestGoPackageOption(t *testing.T) {
 func TestGoPackageOption(t *testing.T) {
 	tests := []struct {
 	tests := []struct {
-		in           string
-		impPath, pkg string
-		ok           bool
+		in      string
+		impPath GoImportPath
+		pkg     GoPackageName
+		ok      bool
 	}{
 	}{
 		{"", "", "", false},
 		{"", "", "", false},
 		{"foo", "", "foo", true},
 		{"foo", "", "foo", true},