Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67f3a15

Browse files
committed
interactive/reporter: Fix type format identifier in test
The test was failing with the following error: "Errorf format %s has arg expected of wrong type []interactive.Line"
1 parent f6eba72 commit 67f3a15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

interactive/reporter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ func TestReportingUnits(t *testing.T) {
7474
func testTreeAgainstOutput(testTree *core.File, marked map[*core.File]struct{}, expected []Line, t *testing.T) {
7575
result := ReportTree(testTree, marked)
7676
if !reflect.DeepEqual(result, expected) {
77-
t.Errorf("expected:\n%sbut got:\n%s", expected, result)
77+
t.Errorf("expected:\n%vbut got:\n%v", expected, result)
7878
}
7979
}

0 commit comments

Comments
 (0)