We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ae165b commit 3fc2088Copy full SHA for 3fc2088
internal/test/test.go
@@ -1,10 +1,17 @@
1
+// package test should be renamed to require. Maybe we could try 1st gopls and
2
+// then idea? TODO:
3
package test
4
5
import (
6
"fmt"
7
"testing"
8
)
9
10
+// TODO: why we have 2 Require functions? If we'll use type assertion for the
11
+// first argument and decide that if it's a string and maybe search % marks we
12
+// could have only one function? Or we count v count: if 1 no format, if >1
13
+// format.
14
+
15
// Require fails the test if the condition is false.
16
func Require(tb testing.TB, condition bool, v ...interface{}) {
17
tb.Helper()
0 commit comments