Skip to content

Conversation

@techfg
Copy link
Contributor

@techfg techfg commented Jul 10, 2024

NOTE: The build for this PR is expected to fail as the PR currently only adds tests to reproduce the issues in #1621

Summary

Add tests to reproduce issues in #1621

Changes

Adds 5 tests to reproduce issue

Motivation

See #1621

Related issues

#1621

@brackendawson
Copy link
Collaborator

Looking into #1621 it appears the current behaviour is working as designed. I dislike the design, but specifically making Unset only unset its own Call instance will break the intended use case which is encoded in tests added with the feature:

myMock.On(1).Return()
myMock.On(1).Return().Unset()
// There are now no expectations to be called with `1`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help wanted pkg-mock Any issues related to Mock

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants