lib/Neovim/RPC/Plugin/Echo.pm

filter: Statementstmt 90.0% 18 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod n/a totaltotal 88.4% 23 / 26 CC 1 SCAR 1.5
CC
1
Cov
90%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« script/nvimx.pl ↑ Summary
1 package Neovim::RPC::Plugin::Echo;
2 1 our $AUTHORITY = 'cpan:YANICK';
3 # ABSTRACT: echo back message to nvim
4 1 $Neovim::RPC::Plugin::Echo::VERSION = '1.0.1';
5 1 ▶use 5.20.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use Neovim::RPC::Plugin;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 ▶use experimental qw/ signatures /;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 0 ▶subscribe echo => sub($self,$event) {
Subroutine __ANON__: not called CC=1 SCAR=6.9
15 0 my $message = $event->params->[0];
16 0 $self->api->vim_command( qq{echo "$message"} );
17 1 };
18  
19 1 1;
20  
21 __END__
« script/nvimx.pl ↑ Summary