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

containous / flaeg
90%
master: 90%

Build:
Build:
LAST BUILD BRANCH: patch-1
DEFAULT BRANCH: master
Repo Added 02 May 2016 12:27PM UTC
Files 2
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

LAST BUILD ON BRANCH v1.4.1
branch: v1.4.1
CHANGE BRANCH
x
Reset
  • v1.4.1
  • add-GetBoolFlags-func
  • add-GetFlags-func
  • add-coveralls
  • add-metadata
  • agrs-case-insensitive
  • beautiful-help
  • cocap10-update-readme
  • commands-improvement
  • continue-on-error-missing-parser
  • enhancement/usage
  • fix-ascii-art
  • fix-defalt-values-pointer
  • fix-empty-args
  • fix-no-flags-panic
  • fix-parser-type-conversion
  • fix-unexported-field
  • fix/default-values-pointer
  • master
  • parser-improvement
  • parser-structag-refactor
  • pointer-under-pointer-set-value
  • refactor-GetCommand
  • revert-12-parser-improvement
  • v0.5.0
  • v1.0.0
  • v1.0.1
  • v1.1.0
  • v1.1.1
  • v1.1.2
  • v1.2.0
  • v1.3.0
  • v1.4.0

01 Dec 2018 09:05PM UTC coverage: 90.103%. First build
219

push

travis-ci

ldez
use ParseInt instead of Atoi for parsing durations (#52)

Flaeg is failing to deserialize durations with values >= to 2^32 on 32 bits architectures.
This is caused by the usage of `Atoi` to parse duration, which returns an `int` not an `int64`.

During a JSON unmarshall of a duration for values >= to 2^32, Atoi will
return an error and flaeg will try to parse the value as a string, which
is going to fail too, causing the unmarshalling to fail.

Using `ParseInt(s, 10, 64)` fixes the problem, as it works on an int64.

610 of 677 relevant lines covered (90.1%)

96.39 hits per line

Relevant lines Covered
Build:
Build:
677 RELEVANT LINES 610 COVERED LINES
96.39 HITS PER LINE
Source Files on v1.4.1
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
219 v1.4.1 use ParseInt instead of Atoi for parsing durations (#52) Flaeg is failing to deserialize durations with values >= to 2^32 on 32 bits architectures. This is caused by the usage of `Atoi` to parse duration, which returns an `int` not an `int64`. ... push 03 Dec 2018 09:10AM UTC ldez travis-ci
90.1
See All Builds (319)
  • Repo on GitHub
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