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

zhaozg / lua-openssl / 46221553558
93%

Build:
DEFAULT BRANCH: master
Ran 29 Nov 2026 03:45AM UTC
Jobs 1
Files 56
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

29 Nov 2026 03:35AM UTC coverage: 93.057% (+0.005%) from 93.052%
46221553558

push

travis-ci

zhaozg
test: execute the README examples in CI

Every Lua fence in README.md is now parsed and, when the module is
loadable, executed.  A snippet that stops working is caught by the build
instead of by a user upgrading.

.github/shell/check_readme.lua (new, stdlib only, Lua 5.1-5.5 + LuaJIT):
  * extracts fenced blocks, treats ```lua / ```luajit / lua fences as Lua
  * --syntax for a parse-only pass, --strict to require that every
    non-executed block is declared, --isolated for fresh state per block,
    plus --list/--filter/--verbose/--show-output for triage
  * snippets share one sandbox in document order, because the README
    builds on itself (Example 2 reuses the module loaded by a heading)
  * --filter narrows the report only; blocks above a match still run,
    otherwise filtering reports false failures for dependent snippets
  * error line numbers are absolute file lines, so they can be jumped to

Examples that cannot run unattended must say so in the document itself,
via "<!-- readme-check: skip <reason> -->", a "skip:" fence info string,
or a leading "-- readme-check: skip" comment.  Keeping the marker in the
README (instead of a list in the script) is what stops the skip set from
silently growing: --strict fails on undeclared skips.

Notable when writing this:
  * a `while true do end` example hung the checker: LuaJIT compiles the
    loop into a trace and the count hook never fires, so the execution
    budget above never triggered.  The guard now calls jit.off() first;
    correctness beats speed in a checker.
  * "```lua skip: reason" glued the colon onto the verb and silently did
    not skip; parse_directive now tolerates both spellings.

README fix: `if openssl.version_ge(3, 0) then ... end` is a syntax error
(`...` cannot stand in statement position) and had been there unnoticed.
Rewritten with explicit bodies.

Wiring:
  * Makefile: check-readme (needs a built module) and check-readme-syntax
    (no module needed)
  * check.yml: a Read... (continued)

10869 of 11680 relevant lines covered (93.06%)

2037.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 46221553558.1 29 Nov 2026 03:46AM UTC 56
93.06
Travis Job
Source Files on build 46221553558
  • Tree
  • List 56
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0dd4d84a on github
  • Prev Build on master (#41319598079)
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