We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d074c16 commit 1e65e9bCopy full SHA for 1e65e9b
internal/testtext/go1_6.go
@@ -8,7 +8,8 @@ package testtext
8
9
import "testing"
10
11
-func Run(t *testing.T, name string, fn func(t *testing.T)) {
+func Run(t *testing.T, name string, fn func(t *testing.T)) bool {
12
t.Logf("Running %s...", name)
13
fn(t)
14
+ return t.Failed()
15
}
internal/testtext/go1_7.go
@@ -8,6 +8,6 @@ package testtext
- t.Run(name, fn)
+ return t.Run(name, fn)
0 commit comments