# test spiffy_little_function with options 'foo' and 'bar'
# make test run faster by eliminating slow function call redefine_function("main::get_huge_list_of_params", sub {} );
# use minimal constructor redefine_function("Foo::new",sub { return bless {},"Foo" });
# This method should be called with "bar", and return 42, # for the purposes of this test. redefine_function("Foo::compute_result", sub { 42 } );
$result = spiffy_little_function("foo","bar") is($result,4.2,"spiffy_little_function:foo bar test");
restore_all_functions();