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

starwing / amoeba / 43528908263
100%

Build:
DEFAULT BRANCH: master
Ran 13 Nov 2026 11:41PM UTC
Jobs 1
Files 1
Run time 1min
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

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

Jobs
ID Job ID Ran Files Coverage
1 43528908263.1 13 Nov 2026 11:41PM UTC 1
100.0
GitHub Action Run
Source Files on build 43528908263
  • Tree
  • List 1
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 3af8839f on github
  • Prev Build on master (#29436014972)
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