« lib/JMAP/Validation/Generators/ContactInformation.pm
↑ Summary
lib/JMAP/Validation/Tests/Number.pm »
| 1 | package JMAP::Validation::Checks::Boolean; | ||||||||||||
| 2 | |||||||||||||
| 3 | 5 | ▶ | use Test2::Bundle::Extended; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | |||||||||||||
| 5 | our $is_boolean = validator(sub { | ||||||||||||
| 6 | 0 | ▶ | my (%params) = @_; | ||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||||
| 7 | |||||||||||||
| 8 | 0 | ▶ | return (ref($params{got}) || '') eq 'JSON::PP::Boolean'; | ||||||||||
|
Condition0%0/2
ref $params{'got'} || ''
MC/DC0%0/1
ref $params{'got'} || ''
ref $params{'got'}
Truth table0%0/2
A
A= ref $params{'got'}
| |||||||||||||
| 9 | 5 | }); | |||||||||||
| 10 | |||||||||||||
| 11 | 5 | 1; | |||||||||||