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

starwing / amoeba
100%

Build:
DEFAULT BRANCH: master
Repo Added 19 Nov 2016 11:50AM UTC
Files 1
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 master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • master

13 Nov 2026 11:39PM UTC coverage: 100.0%. Remained the same
43528908263

push

github

starwing
fix: make the Lua binding work on LuaJIT and modern Lua

The binding did not build or run on Lua 5.1 (LuaJIT, LÖVE): it used
lua_rawsetp/lua_rawgetp and the luaL_* helpers of 5.2+, looked variable
names up in a table that was never filled, cast constraint userdata
wrongly and never gave the solver a __gc.

Rewrite it around the 5.1 API: shims for the raw table access, one
registry store per solver that owns every variable/constraint handle and
its name, and a finalizer that invalidates all handles before
am_delsolver().  Dropping a Lua reference no longer changes the solver,
and a handle that outlives its solver only ever sees a cleared flag.

Add constraint names, dump/load name -> handle for constraints, and the
introspection the demo plan needs: vars(), constraints(), terms(),
relation(), constant(), strength(), error() and hasconstraint().
Replace the expression proxy with the data-driven API (S:constraint(),
c:add(), c:relation()); amoeba.load() is the only load form, and the
solver methods follow am_add/am_remove (S:add/S:remove).

Document the contract in amoeba.d.lua and point README at it.  Make
test.lua an assertion suite whose stderr must stay empty, and add
test-lua, test-lua-luajit, test-lua-double and cov-lua recipes; the
runner rejects an interpreter that does not match the headers the
module was built against.

824 of 989 branches covered (83.32%)

965 of 965 relevant lines covered (100.0%)

65186.3 hits per line

Relevant lines Covered
Build:
Build:
965 RELEVANT LINES 965 COVERED LINES
65186.3 HITS PER LINE
Source Files on master
  • Tree
  • List 1
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
43528908263 master fix: make the Lua binding work on LuaJIT and modern Lua The binding did not build or run on Lua 5.1 (LuaJIT, LÖVE): it used lua_rawsetp/lua_rawgetp and the luaL_* helpers of 5.2+, looked variable names up in a table that was never filled, cast co... push 13 Nov 2026 11:41PM UTC starwing github
100.0
29436014972 master fix: use INFINITY instead of 1.0/0 push 15 Jul 2026 05:19PM UTC starwing github
100.0
26961674564 master fix: introduce am_negative, fix #22 push 04 Jun 2026 03:27PM UTC starwing github
100.0
26483499350 master fix: avoid using stale variable value in `newedit` push 27 May 2026 12:37AM UTC starwing github
100.0
17825338858 master fix yoga benchmark layout push 18 Sep 2025 10:10AM UTC starwing github
100.0
17523011563 master use INFINITY as AM_REQUIRED push 07 Sep 2025 03:04AM UTC starwing github
100.0
17522995602 master use INFINITY as AM_REQUIRED push 07 Sep 2025 03:03AM UTC starwing github
100.0
17440835620 master demo how to poolize hash memory push 03 Sep 2025 05:12PM UTC starwing github
100.0
17440706279 master demo how to poolize hash memory push 03 Sep 2025 05:07PM UTC starwing github
100.0
17404772726 master add alloc type to `am_Allocf` push 02 Sep 2025 01:18PM UTC starwing github
99.55
See All Builds (51)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc