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

kikito / inspect.lua / 112
98%
master: 99%

Build:
Build:
LAST BUILD BRANCH: safe-inspect
DEFAULT BRANCH: master
Ran 05 Apr 2019 08:08PM UTC
Jobs 5
Files 3
Run time 45s
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
112

Pull #45

travis-ci

web-flow
add a special case for NULL userdata

When interpreting userdata values using 'inspect', the numeric identifiers
are useful to match identify of pointers (comparing the low counters
like `<userdata 3> is easier than reading long pointers like
`userdata: 0x749abc39efa29`).

However, the `NULL` pointer is enough of a special case that it is
important to know when one of those numbered pointers happens to
be `NULL`. When one is dealing with things like JSON parsers, where
the only usual userdata is `cjson.null`, one gets accostumed over
time to interpret `<userdata 1>` to mean `NULL`. This is not obvious,
however, and a seasoned user will trip up the day another userdata
is used in the same table and `NULL` is now `<userdata 2>`.

Adding a test for this would require compiling and loading a C extension.
Pull Request #45: Improve output of userdata, handling`__tostring` and NULL

5 of 5 new or added lines in 1 file covered. (100.0%)

431 of 439 relevant lines covered (98.18%)

198.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 112.1 (LUA="lua=5.1") 05 Apr 2019 08:08PM UTC 0
95.53
Travis Job 112.1
2 112.2 (LUA="lua=5.2") 05 Apr 2019 08:08PM UTC 0
97.54
Travis Job 112.2
3 112.3 (LUA="lua=5.3") 05 Apr 2019 08:08PM UTC 0
97.54
Travis Job 112.3
4 112.4 (LUA="luajit=2.0") 05 Apr 2019 08:09PM UTC 0
95.44
Travis Job 112.4
5 112.5 (LUA="luajit=2.1") 05 Apr 2019 08:08PM UTC 0
95.44
Travis Job 112.5
Source Files on build 112
  • Tree
  • List 0
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #112
  • Pull Request #45
  • PR Base - master (#108)
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

© 2025 Coveralls, Inc