diff --git a/pkg/parser/gotest/gotest_test.go b/pkg/parser/gotest/gotest_test.go index 0e47296..690096e 100644 --- a/pkg/parser/gotest/gotest_test.go +++ b/pkg/parser/gotest/gotest_test.go @@ -594,7 +594,7 @@ var tests = []struct { {Type: "run_test", Name: "TestWithTab"}, {Type: "output", Data: "no-tab"}, {Type: "output", Data: "\tone-tab"}, - {Type: "output", Data: "\ttwo-tab"}, + {Type: "output", Data: "\t\ttwo-tab"}, {Type: "end_test", Name: "TestWithTab", Result: "PASS"}, {Type: "output", Data: "\twhitespace_test.go:31: no-tab"}, {Type: "output", Data: "\twhitespace_test.go:32: \tone-tab"}, @@ -607,12 +607,12 @@ var tests = []struct { {Type: "output", Data: "two-newlines"}, {Type: "output", Data: "two-newlines"}, {Type: "end_test", Name: "TestWithNewlinesFlat", Result: "PASS"}, - {Type: "output", Data: " whitespace_test.go:40: no-newline"}, - {Type: "output", Data: " whitespace_test.go:41: one-newline"}, - {Type: "output", Data: " one-newline"}, - {Type: "output", Data: " whitespace_test.go:42: two-newlines"}, - {Type: "output", Data: " two-newlines"}, - {Type: "output", Data: " two-newlines"}, + {Type: "output", Data: "\twhitespace_test.go:40: no-newline"}, + {Type: "output", Data: "\twhitespace_test.go:41: one-newline"}, + {Type: "output", Data: "\t\tone-newline"}, + {Type: "output", Data: "\twhitespace_test.go:42: two-newlines"}, + {Type: "output", Data: "\t\ttwo-newlines"}, + {Type: "output", Data: "\t\ttwo-newlines"}, {Type: "run_test", Name: "TestSubTests"}, {Type: "run_test", Name: "TestSubTests/TestFlat"}, {Type: "output", Data: "printf 1"}, @@ -626,8 +626,8 @@ var tests = []struct { {Type: "output", Data: "no-space"}, {Type: "run_test", Name: "TestSubTests/TestWithTab"}, {Type: "output", Data: "no-tab"}, - {Type: "output", Data: " one-tab"}, - {Type: "output", Data: " two-tab"}, + {Type: "output", Data: "\tone-tab"}, + {Type: "output", Data: "\t\ttwo-tab"}, {Type: "run_test", Name: "TestSubTests/TestWithNewlinesFlat"}, {Type: "output", Data: "no-newline"}, {Type: "output", Data: "one-newline"}, @@ -637,11 +637,28 @@ var tests = []struct { {Type: "output", Data: "two-newlines"}, {Type: "end_test", Name: "TestSubTests", Result: "PASS"}, {Type: "end_test", Name: "TestSubTests/TestFlat", Result: "PASS", Indent: 1}, - {Type: "output", Data: " whitespace_test.go:9: log 1"}, - {Type: "output", Data: " whitespace_test.go:10: log 2"}, + {Type: "output", Data: " \twhitespace_test.go:9: log 1"}, + {Type: "output", Data: " \twhitespace_test.go:10: log 2"}, {Type: "end_test", Name: "TestSubTests/TestWithSpace", Result: "PASS", Indent: 1}, - {Type: "output", Data: " whitespace_test.go:16: no-space"}, - {Type: "output", Data: " whitespace_test.go:17: one-space"}, + {Type: "output", Data: " \twhitespace_test.go:16: no-space"}, + {Type: "output", Data: " \twhitespace_test.go:17: one-space"}, + {Type: "output", Data: " \twhitespace_test.go:18: two-space"}, + {Type: "output", Data: " \twhitespace_test.go:19: four-space"}, + {Type: "output", Data: " \twhitespace_test.go:20: eight-space"}, + {Type: "output", Data: " \twhitespace_test.go:21: no-space"}, + {Type: "end_test", Name: "TestSubTests/TestWithTab", Result: "PASS", Indent: 1}, + {Type: "output", Data: " \twhitespace_test.go:31: no-tab"}, + {Type: "output", Data: " \twhitespace_test.go:32: one-tab"}, + {Type: "output", Data: " \twhitespace_test.go:33: two-tab"}, + {Type: "end_test", Name: "TestSubTests/TestWithNewlinesFlat", Result: "PASS", Indent: 1}, + {Type: "output", Data: " \twhitespace_test.go:40: no-newline"}, + {Type: "output", Data: " \twhitespace_test.go:41: one-newline"}, + {Type: "output", Data: " \t\tone-newline"}, + {Type: "output", Data: " \twhitespace_test.go:42: two-newlines"}, + {Type: "output", Data: " \t\ttwo-newlines"}, + {Type: "output", Data: " \t\ttwo-newlines"}, + {Type: "status", Result: "PASS"}, + {Type: "summary", Result: "ok", Name: "github.com/jstemmer/test/whitespace", Duration: 1 * time.Millisecond}, }}, }