소스 검색

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
 		}