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

starius / mo.lua / 12
100%

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

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%)

35.68 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12.1 (LUA=lua5.1) 11 May 2015 10:22PM UTC 0
100.0
Travis Job 12.1
2 12.2 (LUA=lua5.2) 11 May 2015 10:22PM UTC 0
100.0
Travis Job 12.2
3 12.3 (LUA=lua5.3) 11 May 2015 10:22PM UTC 0
100.0
Travis Job 12.3
4 12.4 (LUA=luajit) 11 May 2015 10:22PM UTC 0
100.0
Travis Job 12.4
5 12.5 (LUA=luajit2.0) 11 May 2015 10:22PM UTC 0
100.0
Travis Job 12.5
Source Files on build 12
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #12
  • Pull Request #2
  • PR Base - master (#11)
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