Skip to content

Commit 7917c9d

Browse files
committed
Add testdata for go test -json -race tests.
Refs #134
1 parent 562bb27 commit 7917c9d

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed

testdata/113-race.gojson.txt

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{"Time":"2022-07-17T22:24:20.065393432+01:00","Action":"run","Package":"package/race-json/pkg1","Test":"TestPkg1"}
2+
{"Time":"2022-07-17T22:24:20.065595209+01:00","Action":"output","Package":"package/race-json/pkg1","Test":"TestPkg1","Output":"=== RUN TestPkg1\n"}
3+
{"Time":"2022-07-17T22:24:20.065621488+01:00","Action":"output","Package":"package/race-json/pkg1","Test":"TestPkg1","Output":"--- PASS: TestPkg1 (0.00s)\n"}
4+
{"Time":"2022-07-17T22:24:20.065633674+01:00","Action":"pass","Package":"package/race-json/pkg1","Test":"TestPkg1","Elapsed":0}
5+
{"Time":"2022-07-17T22:24:20.065647242+01:00","Action":"output","Package":"package/race-json/pkg1","Output":"PASS\n"}
6+
{"Time":"2022-07-17T22:24:20.065407525+01:00","Action":"run","Package":"package/race-json/pkg2","Test":"TestPkg2"}
7+
{"Time":"2022-07-17T22:24:20.06568802+01:00","Action":"output","Package":"package/race-json/pkg2","Test":"TestPkg2","Output":"=== RUN TestPkg2\n"}
8+
{"Time":"2022-07-17T22:24:20.065713342+01:00","Action":"output","Package":"package/race-json/pkg2","Test":"TestPkg2","Output":"--- PASS: TestPkg2 (0.00s)\n"}
9+
{"Time":"2022-07-17T22:24:20.065725102+01:00","Action":"pass","Package":"package/race-json/pkg2","Test":"TestPkg2","Elapsed":0}
10+
{"Time":"2022-07-17T22:24:20.065736721+01:00","Action":"output","Package":"package/race-json/pkg2","Output":"PASS\n"}
11+
{"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"}
12+
{"Time":"2022-07-17T22:24:20.065763529+01:00","Action":"pass","Package":"package/race-json/pkg2","Elapsed":0}
13+
{"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"}
14+
{"Time":"2022-07-17T22:24:20.065831715+01:00","Action":"pass","Package":"package/race-json/pkg1","Elapsed":0}

testdata/113-report.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<testsuites tests="2">
3+
<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">
4+
<properties>
5+
<property name="go.version" value="1.0"></property>
6+
</properties>
7+
<testcase name="TestPkg2" classname="package/race-json/pkg2" time="0.000"></testcase>
8+
</testsuite>
9+
<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">
10+
<properties>
11+
<property name="go.version" value="1.0"></property>
12+
</properties>
13+
<testcase name="TestPkg1" classname="package/race-json/pkg1" time="0.000"></testcase>
14+
</testsuite>
15+
</testsuites>
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package pkg1
2+
3+
import "testing"
4+
5+
func TestPkg1(t *testing.T) {
6+
}
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package pkg2
2+
3+
import "testing"
4+
5+
func TestPkg2(t *testing.T) {
6+
}

0 commit comments

Comments
 (0)