Skip to content

Commit

Permalink
Add testdata for go test -json -race tests.
Browse files Browse the repository at this point in the history
Refs #134
  • Loading branch information
jstemmer committed Aug 15, 2022
1 parent 9357c18 commit 4d0ed8b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
14 changes: 14 additions & 0 deletions testdata/113-race.gojson.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{"Time":"2022-07-17T22:24:20.065393432+01:00","Action":"run","Package":"package/race-json/pkg1","Test":"TestPkg1"}
{"Time":"2022-07-17T22:24:20.065595209+01:00","Action":"output","Package":"package/race-json/pkg1","Test":"TestPkg1","Output":"=== RUN TestPkg1\n"}
{"Time":"2022-07-17T22:24:20.065621488+01:00","Action":"output","Package":"package/race-json/pkg1","Test":"TestPkg1","Output":"--- PASS: TestPkg1 (0.00s)\n"}
{"Time":"2022-07-17T22:24:20.065633674+01:00","Action":"pass","Package":"package/race-json/pkg1","Test":"TestPkg1","Elapsed":0}
{"Time":"2022-07-17T22:24:20.065647242+01:00","Action":"output","Package":"package/race-json/pkg1","Output":"PASS\n"}
{"Time":"2022-07-17T22:24:20.065407525+01:00","Action":"run","Package":"package/race-json/pkg2","Test":"TestPkg2"}
{"Time":"2022-07-17T22:24:20.06568802+01:00","Action":"output","Package":"package/race-json/pkg2","Test":"TestPkg2","Output":"=== RUN TestPkg2\n"}
{"Time":"2022-07-17T22:24:20.065713342+01:00","Action":"output","Package":"package/race-json/pkg2","Test":"TestPkg2","Output":"--- PASS: TestPkg2 (0.00s)\n"}
{"Time":"2022-07-17T22:24:20.065725102+01:00","Action":"pass","Package":"package/race-json/pkg2","Test":"TestPkg2","Elapsed":0}
{"Time":"2022-07-17T22:24:20.065736721+01:00","Action":"output","Package":"package/race-json/pkg2","Output":"PASS\n"}
{"Time":"2022-07-17T22:24:20.06574776+01:00","Action":"output","Package":"package/race-json/pkg2","Output":"ok \tpackage/race-json/pkg2\t(cached)\n"}
{"Time":"2022-07-17T22:24:20.065763529+01:00","Action":"pass","Package":"package/race-json/pkg2","Elapsed":0}
{"Time":"2022-07-17T22:24:20.065657773+01:00","Action":"output","Package":"package/race-json/pkg1","Output":"ok \tpackage/race-json/pkg1\t(cached)\n"}
{"Time":"2022-07-17T22:24:20.065831715+01:00","Action":"pass","Package":"package/race-json/pkg1","Elapsed":0}
15 changes: 15 additions & 0 deletions testdata/113-report.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites tests="2">
<testsuite name="package/race-json/pkg2" tests="1" failures="0" errors="0" id="0" hostname="hostname" time="0.000" timestamp="2022-01-01T00:00:00Z">
<properties>
<property name="go.version" value="1.0"></property>
</properties>
<testcase name="TestPkg2" classname="package/race-json/pkg2" time="0.000"></testcase>
</testsuite>
<testsuite name="package/race-json/pkg1" tests="1" failures="0" errors="0" id="1" hostname="hostname" time="0.000" timestamp="2022-01-01T00:00:00Z">
<properties>
<property name="go.version" value="1.0"></property>
</properties>
<testcase name="TestPkg1" classname="package/race-json/pkg1" time="0.000"></testcase>
</testsuite>
</testsuites>
6 changes: 6 additions & 0 deletions testdata/src/race-json/pkg1/pkg1_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package pkg1

import "testing"

func TestPkg1(t *testing.T) {
}
6 changes: 6 additions & 0 deletions testdata/src/race-json/pkg2/pkg2_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package pkg2

import "testing"

func TestPkg2(t *testing.T) {
}

0 comments on commit 4d0ed8b

Please sign in to comment.