NAME
Test::OpenTracing::Interface::ContextReference - compliance testing
SYNOPSIS
use Test::OpenTracing::Interface::ContextReference qw/:all/;
can_all_ok 'MyImplementation::ContextReference',
"MyImplementation class does have all subs defined, well done!";
my $mocked_span_context = bless {}, 'MyImplementation::SpanContext';
#
# calling `new` reuires other dependencies
my $test_thing = MyImplementation::ContextReference
->new_child_of( $mocked_span_context );
can_all_ok( $test_thing,
"An object returned by 'new_child_of' has all required subs defined"
);
DESCRIPTION
This package will provide the tests as described in Test::OpenTracing::Interface.
EXPORTED SUBROUTINES
can_all_ok
Test that all methods mentioned in OpenTracing::Interface::ContextReference are defined.
SEE ALSO
- Test::OpenTracing::Interface
-
Test OpenTracing::Interface compliance.
- OpenTracing::Interface::ContextReference
-
Defines the ContextReference.
AUTHOR
Theo van Hoesel <tvanhoesel@perceptyx.com>
COPYRIGHT AND LICENSE
'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.