Branch Coverage

blib/lib/Device/WebIO.pm
Criterion Covered Total %
branch 26 30 86.6


line true false branch
503 0 2 unless $obj->does('Device::WebIO::Device::TempSensor')
514 0 2 unless $obj->does('Device::WebIO::Device::TempSensor')
525 0 2 unless $obj->does('Device::WebIO::Device::TempSensor')
569 10 74 if ($pin_count <= $pin)
584 19 65 if ($type eq 'DigitalInput' and $obj->does('Device::WebIO::Device::DigitalInput')) { }
3 62 elsif ($type eq 'DigitalInputCallback' and $obj->does('Device::WebIO::Device::DigitalInputCallback')) { }
13 49 elsif ($type eq 'DigitalOutput' and $obj->does('Device::WebIO::Device::DigitalOutput')) { }
10 39 elsif ($type eq 'ADC' and $obj->does('Device::WebIO::Device::ADC')) { }
5 34 elsif ($type eq 'PWM' and $obj->does('Device::WebIO::Device::PWM')) { }
16 18 elsif ($type eq 'VideoOutput' and $obj->does('Device::WebIO::Device::VideoOutput')) { }
11 7 elsif ($type eq 'StillImageOutput' and $obj->does('Device::WebIO::Device::StillImageOutput')) { }
4 3 elsif ($type eq 'I2CProvider' and $obj->does('Device::WebIO::Device::I2CProvider')) { }
3 0 elsif ($type eq 'SPI' and $obj->does('Device::WebIO::Device::SPI')) { }
631 100 4 if ($obj->does($full_type))
636 4 100 unless ($does)