NAME
Sub::Meta::Test - testing utilities for Sub::Meta
SYNOPSIS
use Sub::Meta::Test qw(sub_meta sub_meta_parameters sub_meta_param);
is Sub::Meta->new, sub_meta({
subname => 'foo'
}); # => Fail test
is Sub::Meta::Parameters->new(args => []), sub_meta_parameters({
args => ['Str'],
}); # => Fail test
is Sub::Meta::Param->new, sub_meta_param({
type => 'Str',
}); # => Fail test
DESCRIPTION
This module provides testing utilities for Sub::Meta.
UTILITIES
sub_meta
Testing utility for Sub::Meta object.
sub_meta_parameters
Testing utility for Sub::Meta::Parameters object.
sub_meta_param
Testing utility for Sub::Meta::Param object.
sub_meta_returns
Testing utility for Sub::Meta::Returns object.
test_is_same_interface
Testing utility for is_same_interface method of Sub::Meta, Sub::Meta::Param, Sub::Meta::Parameters and Sub::Meta::Returns.
test_error_message
Testing utility for error_message method of Sub::Meta, Sub::Meta::Parameters and Sub::Meta::Returns.
DummyType
Return dummy type object that will return the class name when evaluated as a string.
LICENSE
Copyright (C) kfly8.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
kfly8 <kfly@cpan.org>