Branch Coverage

lib/Google/RestApi/SheetsApi4/Request.pm
Criterion Covered Total %
branch 19 38 50.0


line true false branch
21 97 94 if (%request)
23 20 77 unless $self->merge_request(\%request)
35 0 97 unless my $requests = $$self{"requests"}
39 20 77 if $index < 0
48 40 37 if $fields and $other_fields
51 40 37 if %fields
65 3 77 if $key ne $other_key
66 0 77 if $key =~ /^(deleteProtected|deleteNamed|deleteEmbeded)/
68 0 77 if ($key =~ /^updateProtected/)
69 0 0 unless my $id = $$request{$key}{"protectedRangeId"}
70 0 0 unless my $other_id = $$other_request{$key}{"protectedRangeId"}
74 0 77 if ($key =~ /^updateNamedRange/)
75 0 0 unless my $id = $$request{$key}{"namedRange"}{"namedRangeId"}
76 0 0 unless my $other_id = $$other_request{$key}{"namedRange"}{"namedRangeId"}
80 0 77 if ($key =~ /^updateEmbededObject/)
81 0 0 unless my $id = $$request{$key}{"objectId"}
82 0 0 unless my $other_id = $$other_request{$key}{"objectId"}
93 0 9 if @_ and not $$self{"requests"}
97 0 9 unless $requests