File: ReportSubclasses.pm

package info (click to toggle)
libmetabase-fact-perl 0.025-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 360 kB
  • sloc: perl: 1,076; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 577 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use strict;
use warnings;

package JustOneFact;
our @ISA = ('Metabase::Report');
sub report_spec { return { 'Metabase::Fact' => 1 } }

package OneOrMoreFacts;
our @ISA = ('Metabase::Report');
sub report_spec { return { 'Metabase::Fact' => '1+' } }

package OneOfEach;
our @ISA = ('Metabase::Report');

sub report_spec {
    return {
        'FactOne' => '1',
        'FactTwo' => '1',
    };
}

package OneSpecificAtLeastThreeTotal;
our @ISA = ('Metabase::Report');

sub report_spec {
    return {
        'FactOne'        => '1',
        'Metabase::Fact' => '3',
    };
}

1;