Group
Extension

Matches 2

Test-Trap ( E/EB/EBHANSSEN/Test-Trap-v0.3.5.tar.gz, EBHANSSEN, 2022; MetaCPAN )
Test-Trap/t/10-tester.t ( view source; MetaCPAN )
depth}, 1 );

# Capture some TB version dependent stuff:
($prem, @t) = run_tests sub { isnt 5, 5 };
my $diag5isnt5 = $t[0]{diag};

# Trap with print, and exit 5, and diag_all_once
($prem, @t) = run_te
once { print "Hello world"; exit 5 };
      $T->exit_nok('Exit with false value');
      $T->exit_isnt(5, 'Exit with non-5 value');
    },
  );
is( $prem, '' );
is( $#t, 1 );
is( $t[0]{ok}, 0, '->exit
( $t[0]{depth}, 1 );
is( $t[1]{ok}, 0, '->exit_isnt');
is( $t[1]{actual_ok}, 0 );
is( $t[1]{name}, 'Exit with non-5 value' );
is( $t[1]{diag}, "$diag5isnt5(as above)\n" );
is( $t[1]{depth}, 1 );

# Tr
Test-Trap ( E/EB/EBHANSSEN/Test-Trap-v0.3.5.tar.gz, EBHANSSEN, 2022; MetaCPAN )
Test-Trap/xt/author/pod-coverage.t ( view source; MetaCPAN )
 ^ did _ $accessor $ /x;
my $test =
  qr/ ^ $accessor _
    (?: ok
      | nok
      | is
      | isnt
      | isa_ok
      | like
      | unlike
      | cmp_ok
      | is_deeply
      ) $
    /x;
my 

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.