Skip to content

Replace Mock with Mimic - #109

Merged
maennchen merged 1 commit into
mainfrom
replace-mock-with-mimic
Nov 4, 2026
Merged

maennchen merged 1 commit into
mainfrom
replace-mock-with-mimic

Conversation

@maennchen

@maennchen maennchen commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Mock is no longer properly maintained (jjh42/mock#153), and its dependency meck v0 does not compile on OTP 29. This change replaces Mock with Mimic in all tests.

Each mock call is now a stub/3 call, and the two assert_not_called checks are now reject/1. Mimic passes calls to functions without a stub through to the real code, while Mock made them undefined. No test relied on that. The suite passes on OTP 29 and Elixir 1.20.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@maennchen
maennchen merged commit b37d6b9 into main Nov 4, 2026
14 checks passed
@maennchen
maennchen deleted the replace-mock-with-mimic branch November 4, 2026 11:27
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