Branch Coverage

blib/lib/Earthquake/EEW/Decoder.pm
Criterion Covered Total %
branch 18 18 100.0


line true false branch
652 1 19 if ($line =~ /(\d{2}) (\d{2}) (\d{2}) (\d{12}) C(\d{2})/) { }
1 18 elsif ($line =~ /^(\d{12})/) { }
2 16 elsif ($line =~ /ND(\d{14}) ([A-Z]+)(\d+)/) { }
1 15 elsif ($line =~ /(\d{3}) N(\d{3}) E(\d{4}) (\d{3}) (\d{2}) ([0-9\-\+]{2}) RK.+/) { }
1 14 elsif ($line =~ /(\d{4}) N(\d{3}) E(\d{4}) (\d{3})/) { }
6 8 elsif ($line =~ /([CP][APB]I) ([0-9\s]+)/) { }
2 6 elsif ($line =~ /(\d{3}) S([0-9\-\+]{2})([0-9\-\+]{2}) (\d{6}) (\d{2}) (\d{3}) S([0-9\-\+]{2})([0-9\-\+]{2}) (\d{6}) (\d{2})/) { }
4 3 elsif ($now_code and $line =~ /([0-9\s]+)/) { }
728 17 5 if ($now_code =~ /[PC]BI/) { }