File: _show_result.t

package info (click to toggle)
libtest-files-perl 0.26-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 352 kB
  • sloc: perl: 406; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings
  FATAL    => qw( all ),
  NONFATAL => qw( deprecated exec internal malloc newline once portable redefine recursion uninitialized );

use Test::Expander;

my $mock_test_builder = mock 'Test::Builder' => ( override => [ ok => sub { 1 } ] );
my $mock_this         = mock $CLASS          => ( override => [ _show_failure => sub {} ] );
my $self              = $CLASS->_init;

plan( 2 );

ok( !$self->diag( [ 'message' ] )->$METHOD, 'failure' );
ok(  $self->diag( [] )           ->$METHOD, 'success' );