File: Tests.t

package info (click to toggle)
libtest-class-perl 0.52-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 540 kB
  • sloc: perl: 1,706; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 424 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use strict;
use warnings;
use Test::More tests => 2;

{
    package My::Test;
    use base qw( Test::Class );
    use Test::More;
    
    sub Tests_attribute_default_number_of_tests :Tests {
        my $self = shift;
        is( $self->num_tests, 'no_plan' );
    }
    
    sub Tests_attribute_set_number_of_tests :Tests(1) {
        my $self = shift;
        is( $self->num_tests, 1 );
    }
    
}

My::Test->runtests;