MuForm/Model.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 8 / 10 Podpod 0.0% 0 / 7 totaltotal 70.0% 21 / 30 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
build_model
1.0
CRAP 1.0
« MuForm/Field/Boolean.pm ↑ Summary MuForm/Field/Reset.pm »
1 package Data::MuForm::Model;
2 # ABSTRACT: Base Model role
3  
4 82 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 has 'model' => (
7 is => 'rw',
8 lazy => 1,
9 builder => 'build_model',
10 clearer => 'clear_model',
11 82 ▶ trigger => sub { shift->set_model(@_) }
Subroutine __ANON__: called CC=1 SCAR=0.0
12 82 );
13 132 ▶sub build_model { return }
Subroutine build_model: called CC=1 SCAR=0.0
Pod undocumented
14  
15 sub set_model {
16 82 ▶ my ( $self, $model ) = @_;
Subroutine set_model: called CC=1 SCAR=0.0
Pod undocumented
17 82 $self->model_class( ref $model );
18 }
19  
20 has 'model_id' => (
21 is => 'rw',
22 clearer => 'clear_model_id',
23 2 ▶ trigger => sub { shift->set_model_id(@_) }
Subroutine __ANON__: called CC=1 SCAR=0.0
24 82 );
25  
26 ▶sub set_model_id { }
Subroutine set_model_id: called CC=1 SCAR=0.0
Pod undocumented
27  
28 82 has 'model_class' => (
29 # isa => 'Str',
30 is => 'rw',
31 );
32  
33 9 ▶sub use_model_for_defaults {1}
Subroutine use_model_for_defaults: called CC=1 SCAR=0.0
Pod undocumented
34  
35 ▶sub validate_model { }
Subroutine validate_model: not called CC=1 SCAR=0.0
Pod undocumented
36  
37 ▶sub update_model { }
Subroutine update_model: not called CC=1 SCAR=0.0
Pod undocumented
38  
39 ▶sub lookup_options { }
Subroutine lookup_options: called CC=1 SCAR=0.0
Pod undocumented
40  
41 82 1;
42  
43 __END__
44  
45 =pod
46  
47 =encoding UTF-8
48  
49 =head1 NAME
50  
51 Data::MuForm::Model - Base Model role
52  
53 =head1 VERSION
54  
55 version 0.04
56  
57 =head1 AUTHOR
58  
59 Gerda Shank
60  
61 =head1 COPYRIGHT AND LICENSE
62  
63 This software is copyright (c) 2017 by Gerda Shank.
64  
65 This is free software; you can redistribute it and/or modify it under
66 the same terms as the Perl 5 programming language system itself.
67  
68 =cut
« MuForm/Field/Boolean.pm ↑ Summary MuForm/Field/Reset.pm »