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 4141// # Assertions
4242//
4343// 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
4545// testing framework. This allows the assertion funcs to write the failings and other details to
4646// the correct place.
4747//
Original file line number Diff line number Diff line change 2222// # Assertions
2323//
2424// 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] .
2626// A consequence of this is that it must be called from the goroutine running
2727// the test function, not from other goroutines created during the test.
2828//
You can’t perform that action at this time.
0 commit comments