瀏覽代碼

More govet fixes

Surprisingly these don't show up with go vet, but still cause issues
for the Go distribution.
Raul Silvera 8 年之前
父節點
當前提交
84323835a8
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      internal/driver/fetch_test.go

+ 2
- 2
internal/driver/fetch_test.go 查看文件

74
 			},
74
 			},
75
 		}
75
 		}
76
 		s := &source{}
76
 		s := &source{}
77
-		locateBinaries(p, s, obj, &proftest.TestUI{t, tc.msgCount})
77
+		locateBinaries(p, s, obj, &proftest.TestUI{T: t, Ignore: tc.msgCount})
78
 		if file := p.Mapping[0].File; file != tc.want {
78
 		if file := p.Mapping[0].File; file != tc.want {
79
 			t.Errorf("%s:%s:%s, want %s, got %s", tc.env, tc.file, tc.buildID, tc.want, file)
79
 			t.Errorf("%s:%s:%s, want %s, got %s", tc.env, tc.file, tc.buildID, tc.want, file)
80
 		}
80
 		}
176
 		{path + "go.nomappings.crash", "/bin/gotest.exe"},
176
 		{path + "go.nomappings.crash", "/bin/gotest.exe"},
177
 		{"http://localhost/profile?file=cppbench.cpu", ""},
177
 		{"http://localhost/profile?file=cppbench.cpu", ""},
178
 	} {
178
 	} {
179
-		p, _, _, err := grabProfile(&source{ExecName: tc.execName}, tc.source, 0, nil, testObj{}, &proftest.TestUI{t, 0})
179
+		p, _, _, err := grabProfile(&source{ExecName: tc.execName}, tc.source, 0, nil, testObj{}, &proftest.TestUI{T: t})
180
 		if err != nil {
180
 		if err != nil {
181
 			t.Fatalf("%s: %s", tc.source, err)
181
 			t.Fatalf("%s: %s", tc.source, err)
182
 		}
182
 		}