line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
5
|
|
|
5
|
|
86
|
use 5.006; |
|
5
|
|
|
|
|
18
|
|
|
5
|
|
|
|
|
192
|
|
2
|
5
|
|
|
5
|
|
25
|
use strict; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
142
|
|
3
|
5
|
|
|
5
|
|
25
|
use warnings; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
243
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Metabase::Resource::metabase::fact; |
6
|
|
|
|
|
|
|
our $VERSION = '0.024'; # VERSION |
7
|
|
|
|
|
|
|
|
8
|
5
|
|
|
5
|
|
38
|
use Carp (); |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
84
|
|
9
|
|
|
|
|
|
|
|
10
|
5
|
|
|
5
|
|
25
|
use Metabase::Resource::metabase; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
1115
|
|
11
|
|
|
|
|
|
|
our @ISA = qw/Metabase::Resource::metabase/; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub _metadata_types { |
14
|
1
|
|
|
1
|
|
15
|
return { guid => '//str', }; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub _init { |
18
|
27
|
|
|
27
|
|
36
|
my ($self) = @_; |
19
|
27
|
|
|
|
|
749
|
my ($guid) = $self =~ m{\Ametabase:[^:]+:(.+)\z}; |
20
|
27
|
50
|
33
|
|
|
150
|
Carp::confess("could not determine guid from '$self'\n") |
21
|
|
|
|
|
|
|
unless defined $guid && length $guid; |
22
|
27
|
|
|
|
|
109
|
$self->_add( guid => $guid ); |
23
|
27
|
|
|
|
|
132
|
return $self; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub validate { |
27
|
27
|
|
|
27
|
1
|
37
|
my $self = shift; |
28
|
27
|
|
|
|
|
73
|
$self->_validate_guid( $self->guid ); |
29
|
27
|
|
|
|
|
56
|
return 1; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
# ABSTRACT: class for Metabase facts |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |