Thorium::TypesTests - additional tests for Thorium::Types
version 0.510
use Thorium::TypesTests qw(HostnameOrIP); has 'response' => ( 'isa' => HostnameOrIP, 'is' => 'rw', 'default' => sub { '192.168.0.10' }, 'trigger' => sub { Thorium::TypesTests::test_HostnameOrIP(@_) } );
Use this if you'd like to add additional tests as either Moose attribute triggers or as a standalone library for additional more complicated tests. For instance, HostnameOrIP test above will ping the host.
HostnameOrIP
Adam Flott <adam@npjh.com>
This software is copyright (c) 2011 by Adam Flott <adam@npjh.com>, CIDC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Thorium, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Thorium
CPAN shell
perl -MCPAN -e shell install Thorium
For more information on module installation, please visit the detailed CPAN module installation guide.