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

starius / mo.lua / 12 / 4
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 11 May 2015 10:22PM UTC
Files 1
Run time 0s
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

11 May 2015 10:18PM UTC coverage: 100.0%. Remained the same
LUA=luajit

Pull #2

travis-ci

IonoclastBrigham
Return error strings with "trivial" closure.

Basically, this just returns an error string as a second return value, if a problem occurred loading the mo file.
This follows the Lua idiom established by e.g. io.open().
The client can now handle error conditions, if they care, rather than living with a mysterious, silent failure.
I also beefed up the first check for a valid path; `type(mo_file) ~= "string")` will catch nil as well as other types.

I checked that this file compiles and handles path errors reasonably.
I don't know the .mo format well enough to exercise the other error clauses, but they're pretty straightforward.
Pull Request #2: Return error strings with "trivial" closure.

28 of 28 relevant lines covered (100.0%)

8.04 hits per line

Source Files on job 12.4 (LUA=luajit)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 12
  • Travis Job 12.4
  • 4d9c976e on github
  • Prev Job for LUA=luajit on master (#11.4)
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