| lib/Socialtext/Resting/Mock.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 16 | 32 | 50.0 |
| line | true | false | branch |
|---|---|---|---|
| 39 | 0 | 23 | if ($opts{'file'}) |
| 40 | 0 | 0 | unless -f $opts{'file'} |
| 56 | 0 | 0 | if $server |
| 69 | 0 | 0 | if $username |
| 82 | 0 | 0 | if $password |
| 95 | 1 | 15 | if $workspace |
| 110 | 0 | 56 | if ($$self{'file'}) |
| 112 | 0 | 0 | unless open my $fh, $$self{'file'} |
| 119 | 4 | 52 | unless (defined $text) |
| 133 | 3 | 1 | if $$self{'_get_pages'} |
| 146 | 0 | 54 | if $$self{'die_on_put'} |
| 170 | 8 | 0 | if wantarray |
| 221 | 1 | 1 | if defined $mock_return |
| 226 | 1 | 1 | unless grep {$_ eq $tag;} @$tags |
| 229 | 1 | 0 | if wantarray |
| 263 | 0 | 4 | if @_ |