Branch Coverage

lib/Google/RestApi/SheetsApi4/Spreadsheet.pm
Criterion Covered Total %
branch 31 44 70.4


line true false branch
37 1 10 unless $$self{"id"} or $$self{"name"} or $$self{"uri"}
59 6 219 unless ($$self{"id"})
60 2 4 if ($$self{'uri'}) { }
64 0 2 unless $$self{"id"}
68 1 3 unless @spreadsheets
69 1 2 if scalar @spreadsheets > 1
84 0 5 unless $$self{"name"} ||= $self->properties("title")->{"title"}
93 0 3 unless $$self{"uri"} ||= $self->attrs("spreadsheetUrl")->{"spreadsheetUrl"}
130 117 15 if ($what =~ /^\(/) { }
145 1 136 unless $$self{"cache_seconds"}
170 1 1 if $$self{"_cache"}
172 1 1 if (not $cache_seconds) { }
222 0 117 if $$self{"registered_worksheet"}{$name}
240 0 10 unless @values
252 0 10 if @$responses
273 7 7 $_->batch_requests ? :
275 0 7 unless @ranges
281 0 7 unless @batch_requests
299 0 7 if @$responses
311 0 1 unless $named_range_name
324 0 1 unless my $named_range = $self->named_ranges($named_range_name)
353 0 0 unless my $ranges = $$worksheet{"protectedRanges"}