aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/report_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/report/report_test.go')
-rw-r--r--pkg/report/report_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/report/report_test.go b/pkg/report/report_test.go
index 355edc764..236186b1b 100644
--- a/pkg/report/report_test.go
+++ b/pkg/report/report_test.go
@@ -42,7 +42,7 @@ type ParseTest struct {
Report []byte
}
-func testParseFile(t *testing.T, reporter Reporter, fn string) {
+func testParseFile(t *testing.T, reporter *Reporter, fn string) {
data, err := ioutil.ReadFile(fn)
if err != nil {
t.Fatal(err)
@@ -151,7 +151,7 @@ func parseHeaderLine(t *testing.T, test *ParseTest, ln string) {
}
}
-func testParseImpl(t *testing.T, reporter Reporter, test *ParseTest) {
+func testParseImpl(t *testing.T, reporter *Reporter, test *ParseTest) {
rep := reporter.Parse(test.Log)
containsCrash := reporter.ContainsCrash(test.Log)
expectCrash := (test.Title != "")
@@ -203,7 +203,7 @@ func testParseImpl(t *testing.T, reporter Reporter, test *ParseTest) {
checkReport(t, reporter, rep, test)
}
-func checkReport(t *testing.T, reporter Reporter, rep *Report, test *ParseTest) {
+func checkReport(t *testing.T, reporter *Reporter, rep *Report, test *ParseTest) {
if test.HasReport && !bytes.Equal(rep.Report, test.Report) {
t.Fatalf("extracted wrong report:\n%s\nwant:\n%s", rep.Report, test.Report)
}
@@ -277,7 +277,7 @@ func TestGuiltyFile(t *testing.T) {
forEachFile(t, "guilty", testGuiltyFile)
}
-func testGuiltyFile(t *testing.T, reporter Reporter, fn string) {
+func testGuiltyFile(t *testing.T, reporter *Reporter, fn string) {
data, err := ioutil.ReadFile(fn)
if err != nil {
t.Fatal(err)
@@ -322,7 +322,7 @@ func testGuiltyFile(t *testing.T, reporter Reporter, fn string) {
}
}
-func forEachFile(t *testing.T, dir string, fn func(t *testing.T, reporter Reporter, fn string)) {
+func forEachFile(t *testing.T, dir string, fn func(t *testing.T, reporter *Reporter, fn string)) {
for os := range ctors {
if os == targets.Windows {
continue // not implemented