Text file src/cmd/go/testdata/script/test_json_ascii.txt

     1  ! go test -json
     2  
     3  stdout '"Action":"output","Package":"p","Test":"Test","Output":"=== RUN   Test\\n","OutputType":"frame"'
     4  stdout '"Action":"output","Package":"p","Test":"Test","Output":"    x_test.go:11: \\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n"}'
     5  stdout '"Action":"output","Package":"p","Test":"Test","Output":"        \\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f\\n"}'
     6  stdout '"Action":"output","Package":"p","Test":"Test","Output":"    x_test.go:12: \\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n","OutputType":"error"'
     7  stdout '"Action":"output","Package":"p","Test":"Test","Output":"        \\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f\\n","OutputType":"error-continue"'
     8  stdout '"Action":"output","Package":"p","Test":"Test","Output":"--- FAIL: Test \([\d.]+s\)\\n","OutputType":"frame"'
     9  
    10  -- go.mod --
    11  module p
    12  
    13  -- x_test.go --
    14  package p
    15  
    16  import "testing"
    17  
    18  func Test(t *testing.T) {
    19  	var s string
    20  	for i := rune(0); i < ' '; i++ {
    21  		s += string(i)
    22  	}
    23  
    24      t.Log(s)
    25  	t.Error(s)
    26  }
    27  
    28  

View as plain text