Skip to content

Commit 398298e

Browse files
committed
Created RunTest.
1 parent f1cb054 commit 398298e

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/cardboardrobots/assert
22

3-
go 1.23.1
3+
go 1.25.0

run.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package assert
2+
3+
import (
4+
"testing"
5+
"testing/synctest"
6+
)
7+
8+
func RunTest(t *testing.T, name string, f func(t *testing.T)) bool {
9+
t.Helper()
10+
return t.Run(name, func(t *testing.T) {
11+
t.Helper()
12+
t.Parallel()
13+
synctest.Test(t, f)
14+
})
15+
}

0 commit comments

Comments
 (0)