Skip to content

Clarify the behavior of Times(0) - #2012

Open
Gorkem-Taha wants to merge 1 commit into
stretchr:masterfrom
Gorkem-Taha:docs/1947-times-zero
Open

Gorkem-Taha wants to merge 1 commit into
stretchr:masterfrom
Gorkem-Taha:docs/1947-times-zero

Conversation

@Gorkem-Taha

Copy link
Copy Markdown

Closes #1947

Document that Times(0) removes the call limit while leaving the expectation required at least once, and point to Maybe() for optional expectations.

Validation: git diff --check.

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.

mock.Call.Time documentation incomplete

1 participant