Gherkin/Token.pm

filter: Statementstmt 100% 16 / 16 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 88.0% 22 / 25 CC 2 SCAR 3.0
CC
2
Cov
94%
token_value
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Gherkin/ParserContext.pm ↑ Summary Gherkin/Generated/Languages.pm »
1 package Gherkin::Token;
2 2 $Gherkin::Token::VERSION = '42.0.1';
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 use Class::XSAccessor
7 2 ▶ constructor => 'new',
Subroutine BEGIN: called CC=1 SCAR=0.0
8 accessors => [
9 qw/line location/,
10 2 map { "matched_$_" } qw/type keyword keyword_type
11 indent items text gherkin_dialect/
12 ],
13 2 ;
14  
15 94 ▶sub is_eof { my $self = shift; return !$self->line }
Subroutine is_eof: called CC=1 SCAR=0.0
Pod undocumented
16  
17 2 ▶sub token_value {
Subroutine token_value: called CC=2 SCAR=7.2
Pod undocumented
18 2 my $self = shift;
19 2 ▶ return $self->is_eof ? "EOF" : $self->line->get_line_text;
Branch: 1 branch
BranchTrueFalseTotal
$self->is_eof ? : 0 2 2
20 }
21  
22 2 1;
« Gherkin/ParserContext.pm ↑ Summary Gherkin/Generated/Languages.pm »