Fix/93 moo meta no moose - #94
Merged
Merged
Conversation
_meta_for short-circuits on Moo::HandleMoose::FakeMetaClass (matched by
exact ref, not ->isa) before any ->isa check, so Moo's lazy Moose
metaclass inflation never fires. Previously, mocking a Moo class without
Moose installed died inside Moo::HandleMoose; now Moo classes
consistently fall back to plain symbol-table mocking.
Adds t/moo_meta_for.t (unit) and t/moo_basic.t (functional mock/unmock,
including accessors and inherited methods), declares Moo as a recommended
optional test dep, and adds an oo-deps CI matrix exercising the full
{Moo, Moose, Mouse} dependency cross-product (8 profiles) on a clean
Perl. The moo profile -- Moo present, Moose absent -- reproduces GH #93.
Closes GH #93
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
geofffranks
force-pushed
the
fix/93-moo-meta-no-moose
branch
from
June 15, 2026 22:28
7972bf1 to
fa8bee9
Compare
Merged
bmwiedemann
pushed a commit
to bmwiedemann/openSUSE
that referenced
this pull request
Jun 17, 2026
https://build.opensuse.org/request/show/1360007 by user tinita + anag_factory - updated to 0.185.3 (v0.185.3) see /usr/share/doc/packages/perl-Test-MockModule/Changes ## 0.185.3 — 2026-06-15 ## What's Changed * Fix/93 moo meta no moose by @geofffranks in geofffranks/test-mockmodule#94 **Full Changelog**: geofffranks/test-mockmodule@0.185.2...0.185.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #93