Branch Coverage

lib/Mac/iTunes/Library/Playlist.pm
Criterion Covered Total %
branch 22 32 68.7


line true false branch
136 1 0 if (exists $params{'Name'})
138 1 0 if (exists $params{'Playlist ID'})
140 1 0 if (exists $params{'Playlist Persistent ID'})
142 1 0 if (exists $params{'All Items'})
144 1 0 if (exists $params{'Smart Info'})
146 1 0 if (exists $params{'Smart Criteria'})
148 1 0 if (exists $params{'Playlist Items'})
169 1 1 if (@_)
186 1 1 if (@_)
203 1 1 if (@_)
220 1 1 if (@_)
222 0 1 unless $allItems =~ /^[01]$/
238 1 1 if (@_)
255 1 1 if (@_)
285 0 1 unless $item->isa('Mac::iTunes::Library::Item')
303 0 1 unless (grep {$_->isa('Mac::iTunes::Library::Item');} @{$items;})