Question: this : my $child_mock = $mock->child([ { package => 'Athena::MarOrder::Util', method => 'MacroserviceQuery', stub => sub { my ( $dbh, $args ) = @_; if
this : my $child_mock = $mock->child([ { package => 'Athena::MarOrder::Util', method => 'MacroserviceQuery', stub => sub { my ( $dbh, $args ) = @_; if ( $args->{ENDPOINT} eq 'api/v1/MarOrder' ) { return die; } } } ] ); child_mock is used in all the test cases with various data combinations can we make it a common thing outside the code and call it wherever necessary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
