File: _show_failure.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 (14 lines) | stat: -rw-r--r-- 440 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 => [ diag => sub {}, ok => sub {} ] );
my $self              = $CLASS->_init;

plan( 2 );

ok( !$self->$METHOD,              'empty message' );
ok( !$self->$METHOD( 'message' ), 'non-empty message' );