|
NAMEVenus::Role::Testable - Testable Role ABSTRACTTestable Role for Perl 5 SYNOPSIS package Example;
use Venus::Class;
with 'Venus::Role::Testable';
attr 'value';
sub execute {
return pop;
}
package main;
my $example = Example->new;
# $example->is_true(sub{0});
DESCRIPTIONThis package modifies the consuming package and provides methods for dispatching method calls and returning truthy returns as true and falsy returns as false boolean values. METHODSThis package provides the following methods: is_falseis_false(string | coderef $method, any @args) (boolean) The is_false method dispatches the method call or executes the callback and returns truthy returns as "false" and falsy returns as "true" "boolean" values. Since 0.08
is_trueis_true(string | coderef $method, any @args) (boolean) The is_true method dispatches the method call or executes the callback and returns truthy returns as "true" and falsy returns as "false" "boolean" values. Since 0.08
AUTHORSAwncorp, "awncorp@cpan.org" LICENSECopyright (C) 2022, Awncorp, "awncorp@cpan.org". This program is free software, you can redistribute it and/or modify it under the terms of the Apache license version 2.0.
|