瀏覽代碼

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

Broken by addition of GoImportPath/GoPackageName.
Damien Neil 8 年之前
父節點
當前提交
2b3479d8d7
共有 1 個文件被更改,包括 4 次插入3 次删除
  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) {
 	tests := []struct {
-		in           string
-		impPath, pkg string
-		ok           bool
+		in      string
+		impPath GoImportPath
+		pkg     GoPackageName
+		ok      bool
 	}{
 		{"", "", "", false},
 		{"foo", "", "foo", true},