-
-
16 Aug 2013 08:36:22 UTC
- Distribution: Test-Magpie
- Module version: 0.11
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (973 / 1 / 116)
- Kwalitee
Bus factor: 0- 88.24% Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (24.87KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Oliver Charles
- Dependencies
- Carp
- Devel::PartialDump
- Exporter
- List::Util
- Moose
- Moose::Meta::Class
- Moose::Role
- Moose::Util
- MooseX::Types
- MooseX::Types::Moose
- MooseX::Types::Structured
- Scalar::Util
- Set::Object
- Test::Builder
- UNIVERSAL::ref
- aliased
- experimental
- namespace::autoclean
- overload
- strict
- warnings
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Test::Magpie::Util - Internal utility functions for Test::Magpie
FUNCTIONS
extract_method_name
$method_name = extract_method_name($full_method_name)
From a fully qualified method name such as Foo::Bar::baz, will return just the method name (in this example, baz).
get_attribute_value
$value = get_attribute_value($object, $attr_name)
Gets value of Moose attributes that have no accessors by accessing the class' underlying meta-object.
has_caller_package
$bool = has_caller_package($package_name)
Returns whether the given
$package
is in the current call stack.match
$bool = match($a, $b)
Match 2 values for equality.
AUTHORS
Oliver Charles <oliver.g.charles@googlemail.com>
Steven Lee <stevenwh.lee@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Oliver Charles.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Test::Magpie, copy and paste the appropriate command in to your terminal.
cpanm Test::Magpie
perl -MCPAN -e shell install Test::Magpie
For more information on module installation, please visit the detailed CPAN module installation guide.