blib/lib/DBIx/TransactionManager/Extended/Txn.pm

filter: Statementstmt 47.6% 10 / 21 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 27.2% 3 / 11 Podpod 62.5% 5 / 8 totaltotal 42.8% 18 / 42 SCAR 10.0
CC
2
Cov
43%
new
6.0
rollback
2.0
commit
2.0
CRAP 2.7
« blib/lib/DBIx/TransactionManager/Extended.pm ↑ Summary blib/lib/DBIx/TransactionManager/Extended/Compat.pm »
1 package DBIx::TransactionManager::Extended::Txn;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use DBIx::TransactionManager; ## XXX: it includes '::ScopeGuard' package
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 sub new {
8 0 ▶ my ($class, $manager, %args) = @_;
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
9 0 ▶ $args{caller} = [caller(1)] unless $args{caller};
Branch: 1 branch
BranchTrueFalseTotal
unless $args{"caller"} 0 0 0
10 0 my $guard = DBIx::TransactionManager::ScopeGuard->new($manager => %args);
11 0 return bless [$guard, $manager] => $class;
12 }
13  
14 0 ▶sub rollback { shift->[0]->rollback }
Subroutine rollback: not called CC=1 SCAR=6.9
Pod undocumented
15 0 ▶sub commit { shift->[0]->commit }
Subroutine commit: not called CC=1 SCAR=6.9
Pod undocumented
16  
17 0 ▶sub context_data { shift->[1]->context_data }
Subroutine context_data: not called CC=1 SCAR=6.9
Pod documented
18 0 ▶sub add_hook_after_commit { shift->[1]->add_hook_after_commit(@_) }
Subroutine add_hook_after_commit: not called CC=1 SCAR=6.9
Pod documented
19 0 ▶sub add_hook_before_commit { shift->[1]->add_hook_before_commit(@_) }
Subroutine add_hook_before_commit: not called CC=1 SCAR=6.9
Pod documented
20 0 ▶sub remove_hook_after_commit { shift->[1]->remove_hook_after_commit(@_) }
Subroutine remove_hook_after_commit: not called CC=1 SCAR=6.9
Pod documented
21 0 ▶sub remove_hook_before_commit { shift->[1]->remove_hook_before_commit(@_) }
Subroutine remove_hook_before_commit: not called CC=1 SCAR=6.9
Pod documented
22  
23 1 1;
24 __END__
« blib/lib/DBIx/TransactionManager/Extended.pm ↑ Summary blib/lib/DBIx/TransactionManager/Extended/Compat.pm »