• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moznion / p5-Compiler-Lexer / 11
93%
master: 93%

Build:
Build:
LAST BUILD BRANCH: fix/if_stmt_on_use_declaration
DEFAULT BRANCH: master
Ran 20 Feb 2015 05:49PM UTC
Jobs 5
Files 3
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
11

push

travis-ci

moznion
Fix handling for format declaration

If `format` is used at non declaration context (for example: key of a hash),
it makes incapable of tokenizing action. It breaks structure of tokens.

I'll show an example code to reproduce;

```perl
my $foo = {
    format => 1,  # <= here's format is misrecognized as a FormatDecl
};

my $bar =  # <= code which is after assign operator will be broken
  "asdf";
1;
```

When tokenizing this code, result of it will be broken because `format`
which is a key of hash is misrecognized as a `FormatDecl`.
So I fixed it.

56 of 60 relevant lines covered (93.33%)

16042.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11.1 20 Feb 2015 05:49PM UTC 0
93.33
Travis Job 11.1
2 11.2 20 Feb 2015 05:50PM UTC 0
93.33
Travis Job 11.2
3 11.3 20 Feb 2015 05:50PM UTC 0
93.33
Travis Job 11.3
4 11.4 20 Feb 2015 05:49PM UTC 0
93.33
Travis Job 11.4
5 11.5 20 Feb 2015 05:53PM UTC 0
93.33
Travis Job 11.5
Source Files on build 11
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #11
  • a8385cec on github
  • Prev Build on fix/format_decl_handling (#9)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc