Run runs the specified sub-test and passes it a T instance from this package.
(testName string, testFn func(t T))
| 75 | // Run runs the specified sub-test and passes it a T instance |
| 76 | // from this package. |
| 77 | func (t *T) Run(testName string, testFn func(t T)) { |
| 78 | t.Helper() |
| 79 | t.T.Run(testName, func(t *testing.T) { |
| 80 | t.Helper() |
| 81 | testFn(T{T: t}) |
| 82 | }) |
| 83 | } |
| 84 | |
| 85 | // Assert calls t.Fatal if the condition is false. Also |
| 86 | // the text of the assertion is printed. |
no outgoing calls