Skip to content

Commit 3fc2088

Browse files
committed
refactoring comments
1 parent 6ae165b commit 3fc2088

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/test/test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
// package test should be renamed to require. Maybe we could try 1st gopls and
2+
// then idea? TODO:
13
package test
24

35
import (
46
"fmt"
57
"testing"
68
)
79

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+
815
// Require fails the test if the condition is false.
916
func Require(tb testing.TB, condition bool, v ...interface{}) {
1017
tb.Helper()

0 commit comments

Comments
 (0)