Skip to content

Commit

Permalink
doc: Fix links to Skipped/Failed (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantv authored Jan 14, 2025
1 parent 8ebb7c1 commit 4f381dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (r TestResult) Panicked() bool {
//
// If a test failed before it was skipped, then Failed takes precedence
// and Skipped returns false. To check if the test was skipped after a failure
// see [FailedAndSkipped].
// see [TestResult.FailedAndSkipped].
func (r TestResult) Skipped() bool {
// Above behaviour is for consistency with testing.TB, from SkipNow docs:
// > If a test fails (see Error, Errorf, Fail) and is then skipped,
Expand All @@ -55,8 +55,8 @@ func (r TestResult) Skipped() bool {

// FailedAndSkipped reports if a test failed, and then was skipped.
//
// See [Skipped] for more details for how this differs from using
// [Failed] and [Skipped].
// See [TestResult.Skipped] for more details for how this differs from using
// [TestResult.Failed] and [TestResult.Skipped].
func (r TestResult) FailedAndSkipped() bool {
return r.res.Failed() && r.res.Skipped()
}
Expand Down

0 comments on commit 4f381dd

Please sign in to comment.