Test::OpenTracing::Interface::Tracer - compliance testing
use Test::OpenTracing::Interface::ContextReference qw/:all/; can_all_ok 'MyImplementation::ContextReference', "MyImplementation class does have all subs defined, well done!"; # lets be a bit fancy, a proper Implementation should have a C<bootstrap> # method to setup a Tracer, lets see if that works too: use MyImplementation; my $test_thing = MyImplementation ->bootstrap( @implementation_args ); can_all_ok( $test_thing, "An object returned by 'bootstrap' has all required subs defined" );
This package will provide the tests as described in Test::OpenTracing::Interface.
can_all_ok
Test that all methods mentioned in OpenTracing::Interface::Tracer are defined.
Test OpenTracing::Interface compliance.
Defines the ContextReference.
Theo van Hoesel <tvanhoesel@perceptyx.com>
'Test OpenTracing' is Copyright (C) 2020, Perceptyx Inc
This library is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.
This library is distributed in the hope that it will be useful, but it is provided "as is" and without any express or implied warranties.
For details, see the full text of the license in the file LICENSE.
To install Test::OpenTracing::Interface, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::OpenTracing::Interface
CPAN shell
perl -MCPAN -e shell install Test::OpenTracing::Interface
For more information on module installation, please visit the detailed CPAN module installation guide.