Skip to content

Guard FailNow#181

Merged
bayashi merged 4 commits into
mainfrom
guard-failnow
Oct 5, 2025
Merged

Guard FailNow#181
bayashi merged 4 commits into
mainfrom
guard-failnow

Conversation

@bayashi
Copy link
Copy Markdown
Owner

@bayashi bayashi commented Oct 5, 2025

Add FailNow gurad syntax:

        actually.FailNow(func() {
		actually.Got(false).True(t) // stop this failuer
		actually.Got(true).True(t)  // not executed
	})

FailNow method is same as before:

    actually.Got(something).FailNow().Nil(t)

@bayashi bayashi merged commit 9e7bc5f into main Oct 5, 2025
8 checks passed
@bayashi bayashi deleted the guard-failnow branch October 5, 2025 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant