blib/lib/Vim/X/Cursor.pm

filter: Statementstmt 80.7% 21 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 1 totaltotal 79.4% 27 / 34 SCAR 0.1
CC
1
Cov
81%
append
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Build ↑ Summary blib/lib/Vim/X/Window.pm »
1 package Vim::X::Cursor;
2 BEGIN {
3 4 ▶ $Vim::X::Cursor::AUTHORITY = 'cpan:YANICK';
Subroutine BEGIN: called CC=1 SCAR=0.0
4 }
5 # ABSTRACT: A window cursor in Vim
6 4 $Vim::X::Cursor::VERSION = '1.1.0';
7 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 4 ▶use Vim::X;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 4 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 4 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15  
16 4 has window => (
17 is => 'ro',
18 required => 1,
19 );
20  
21 4 has line => ( is => 'ro', required => 1 );
22 4 has col => ( is => 'ro', required => 1 );
23  
24 sub append {
25 0 ▶ my( $self, $stuff ) = @_;
Subroutine append: not called CC=1 SCAR=6.9
Pod undocumented
26  
27 0 my $line = $self->line;
28 0 my $content = $line->content;
29 0 substr( $content, $self->col + 1, 0 ) = $stuff;
30 0 $line->content($content);
31 }
32  
33 4 1;
34  
35 __END__
« Build ↑ Summary blib/lib/Vim/X/Window.pm »