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

osteele / liquid / 139 / 1
49%
master: 49%

Build:
DEFAULT BRANCH: master
Ran 31 May 2018 06:41PM UTC
Files 51
Run time 2min
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

31 May 2018 06:39PM UTC coverage: 89.154% (+38.8%) from 50.308%
139.1

Pull #30

travis-ci

web-flow
Properly handle implicit conversion to integer types.

Go's reflect API is very picky about arguments to Call method. You can't just
pass in the "int" when function expects "int64", even on 64 bit machines. This
patch solves this problem by performing conversions properly. Truncation
problems however, as well as negative to uint issues are completely ignored.
Which is perhaps not ideal, but still better than returning "int" when "int32"
or "int64" is requested.

I did split the Kind switch cases and moved value -> int and value -> float
conversions to separate functions. An alternative to that would be using the
reflection API, which might be less performant. Not that it matters much, but
this solution is correct, even though looks a bit copy & pasty.

Oh and of course all "uint" types were completely missing in the function and
they are now added.
Pull Request #30: Properly handle implicit conversion to integer types.

2655 of 2978 relevant lines covered (89.15%)

591.83 hits per line

Source Files on job 139.1
  • Tree
  • List 0
  • Changed 45
  • Source Changed 1
  • Coverage Changed 45
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 137
  • Travis Job 139.1
  • 5bfd9e7f on github
  • Prev Job for on master (#138.2)
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