blib/lib/Swagger2/Editor.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 9 | 18 | 50.0 |
line | true | false | branch |
---|---|---|---|
18 | 0 | 1 | if $c->req->is_xhr |
31 | 2 | 0 | if $file and -w $file |
33 | 0 | 2 | unless (eval { do { my $s = 'Swagger2'->new->parse($spec); Mojo::Util::spurt($spec, $file) if $file and -w $file; $c->render('text', $c->podify($s->pod), 'layout', undef) } }) |
46 | 1 | 0 | if (my $file = $self->specification_file) |
47 | 0 | 1 | $file =~ /^https?:/ ? : |
75 | 0 | 30 | if ($e->type eq 'h1') { } |
76 | 0 | 0 | if $sub |
80 | 3 | 27 | unless $sub |
89 | 3 | 0 | if $ul |