| 1 | package ok; | ||||||||||
| 2 | 17 | our $VERSION = '1.302226'; | |||||||||
| 3 | |||||||||||
| 4 | 17 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 17 | ▶ | use Test::More (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 19 | ▶ | sub import { | ||||||||
|
Subroutine
import: called CC=4 SCAR=16.4
| |||||||||||
| 8 | 19 | shift; | |||||||||
| 9 | |||||||||||
| 10 | 19 | ▶ | if (@_) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | 19 | ▶ | goto &Test::More::pass if $_[0] eq 'ok'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | 18 | goto &Test::More::use_ok; | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | # No argument list - croak as if we are prototyped like use_ok() | ||||||||||
| 16 | 0 | my (undef, $file, $line) = caller(); | |||||||||
| 17 | 0 | ▶ | ($file =~ /^\(eval/) or die "Not enough arguments for 'use ok' at $file line $line\n"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | |||||||||||
| 21 | __END__ | ||||||||||