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

n1tehawk / luaunit / 128 / 2
100%
nitehawk: 100%

Build:
DEFAULT BRANCH: nitehawk
Ran 08 Jan 2016 12:58PM 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

08 Jan 2016 12:55PM UTC coverage: 99.169%. Remained the same
LUA=lua5.2

push

travis-ci

n1tehawk
New implementation of sortedPairs() / sortedNext()

The previous approach kept information required for the
sortedNext() iteration in a global table. This contradicts
standard Lua conventions, where generic for loops are perfectly
able to manage their local ("invariant") state just fine.

The existing implementation especially had the problem that the
sortedNextCache entry might not get properly cleaned up
(= removed) if the user didn't iterate the table completely, e.g.
by breaking out of a "for sortedPairs() do ..." loop.

This is an alternative version of sortedPairs (and the iterator
function sortedNext) that removes sortedNextCache completely.
Iteration states are now managed cleanly, and completely isolated
from each other.

955 of 963 relevant lines covered (99.17%)

1002.87 hits per line

Source Files on job 128.2 (LUA=lua5.2)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 128
  • Travis Job 128.2
  • db73d570 on github
  • Prev Job for LUA=lua5.2 on nitehawk (#125.2)
  • Next Job for LUA=lua5.2 on nitehawk (#130.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