blib/lib/WebDyne/Cloudflare/D1/Session.pm

filter: Statementstmt 95.6% 22 / 23 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 2 totaltotal 85.2% 29 / 34 CC 2 SCAR 3.2
CC
2
Cov
92%
get_bookmark
2.0
new
2.0
BEGIN
1.0
CRAP 1.4
« blib/lib/WebDyne/Cloudflare/R2/Object.pm ↑ Summary
1 package WebDyne::Cloudflare::D1::Session;
2  
3 1 ▶use 5.020;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Future::AsyncAwait;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use WebDyne::Cloudflare::D1;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 our @ISA=qw(WebDyne::Cloudflare::D1);
10 1 our $VERSION='0.001';
11  
12 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
13 0 die "Create D1 sessions with with_session()\n";
14 }
15  
16  
17 4 ▶async sub get_bookmark {
Subroutine get_bookmark: called CC=2 SCAR=7.0
Pod undocumented
18 4 my ($self)=@_;
19 4 ▶ die "D1 get_bookmark takes no arguments\n" unless (@_==1);
Branch: 1 branch
BranchTrueFalseTotal
unless @_ == 1 0 4 4
20 4 return await $self->execute(operation => 'get_bookmark');
21 1 }
22  
23 1 1;
« blib/lib/WebDyne/Cloudflare/R2/Object.pm ↑ Summary