File: TestClassLoadSubclass.pm

package info (click to toggle)
libtest-class-perl 0.35-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 476 kB
  • ctags: 102
  • sloc: perl: 1,668; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 321 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package TestClassLoadSubclass;

use strict;
use warnings;
use base qw(Test::Class::Load);

# Overriding this selects what test classes
# are considered by T::C::Load
sub is_test_class {
    my ($class, $file, $dir) = @_;
    # Get only "good" classes
    if ($file =~ m{Good}) {
        return 1;
    }
    return;
}

1;