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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!