You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like mock 'class' does not delegate to mock_class.
mock_class:
perl -E 'use Test2::V0; use Test2::Tools::Mock qw(mock_class); my $mock = mock_class q/Some::Class/, ( add => [ new_method => sub { say "new_method"; } ] ); Some::Class->new_method; '
new_method
mock 'class':
$ perl -E 'use Test2::V0; my $mock = mock q/class/, q/Some::Class/, ( add => [ new_method => sub { say "new_method"; } ] ); Some::Class->new_method; '
Not currently building a mock at -e line 1.
It looks like
mock 'class'
does not delegate tomock_class
.mock_class
:mock 'class'
:May
mock 'class'
be delegate tomock_do
?test-more/lib/Test2/Tools/Mock.pm
Lines 128 to 129 in 8e80a95
Version
The text was updated successfully, but these errors were encountered: