File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 41
41
// # Assertions
42
42
//
43
43
// Assertions allow you to easily write test code, and are global funcs in the assert package.
44
- // All assertion functions take, as the first argument, the *testing.T object provided by the
44
+ // All assertion functions take, as the first argument, the [ *testing.T] object provided by the
45
45
// testing framework. This allows the assertion funcs to write the failings and other details to
46
46
// the correct place.
47
47
//
Original file line number Diff line number Diff line change 22
22
// # Assertions
23
23
//
24
24
// The require package have same global functions as in the assert package,
25
- // but instead of returning a boolean result they call "t. FailNow()" .
25
+ // but instead of returning a boolean result they call [testing.T. FailNow] .
26
26
// A consequence of this is that it must be called from the goroutine running
27
27
// the test function, not from other goroutines created during the test.
28
28
//
You can’t perform that action at this time.
0 commit comments