Commit Graph

63 Commits

Author SHA1 Message Date
Enrique García Cota
dc5a7f48d2 Add options.override, refactor 2022-05-21 01:25:00 +02:00
Enrique García Cota
78c67816ef (break) remove process option 2022-03-29 14:30:13 +02:00
Enrique García Cota
df482c613a escape DEL character. fixes #40 2021-11-12 10:48:57 +01:00
Enrique García Cota
b611db6bfa allow using inspect inside __tostring metamethods without errors 2018-04-06 23:14:00 +02:00
Enrique García Cota
9dc10c968f Ignore __pairs when iterating over tables
Related with #33
2018-03-19 19:04:07 +01:00
IntendedConsequence
b6bb292f68 ignore metatables with __metatable field set to non-nil non-table values 2018-02-18 22:59:44 +02:00
Enrique García Cota
1faab78bfb luacheck fix 2018-01-02 13:07:34 +01:00
Alexey Kopytov
a4a63bb0d1 Support LuaJIT cdata and ctype values in Inspector:putValue().
Add special handling for cdata and ctype types provided by LuaJIT: use
tostring() to print values of those types, which either provides a more
meaningful default type description (e.g. 'ctype<uint64_t>' instead of
'<ctype 1>') or a user-defined value as described at
http://luajit.org/ext_ffi_api.html#tostring
2017-12-24 11:15:16 +03:00
kikito
bdf85c8f90 Splits specs into two, to illustrate the different handling of escaped control chars 2016-04-10 13:51:20 +02:00
kikito
1ca5576b59 Retab & spacing 2016-04-10 13:49:47 +02:00
kikito
f8da52ca3d Merge branch 'zerochars' of https://github.com/andreashofer123/inspect.lua into andreashofer123-zerochars 2016-04-08 19:42:55 +02:00
Enrique García
3300ae7847 Merge pull request #27 from andreashofer123/tostring
fix endless recursion when using inspect to reimplement global tostring
2016-04-08 19:26:28 +02:00
Andreas Hofer
e091fcd43d changed 'tostring' from a field of inspect to a local variable 2016-04-03 20:08:15 +02:00
Andreas Hofer
864066c51e added more control characters to test case 2016-04-03 19:51:48 +02:00
Andreas Hofer
61d02902b3 fix problem reported by coverage analysis 2016-03-31 20:20:50 +02:00
Andreas Hofer
2a5205e53c fix problem with escaping zero and other control characters 2016-03-30 19:33:20 +02:00
Andreas Hofer
d051ae061c fix endless recursion when using inspect to reimplement global tostring 2016-03-29 22:53:26 +02:00
Andreas Hofer
d372d2ab08 fix problem with recursive tables when using the 'process' option 2016-03-29 22:14:10 +02:00
kikito
5673f2364d Stops relying on rawlen/# to calculate the length of the sequence part of a table
Fixes #24
2016-03-06 17:06:14 +01:00
mpeterv
daaefbd870 Do not allow collecting weak tables while they are being inspected
Fixes #22
2015-11-27 14:53:56 +03:00
kikito
4f9761b631 fixes __len issue using rawlen instead of #t in a couple places 2015-11-21 17:13:48 +01:00
kikito
387a2f683a adds test for rawlen 2015-11-21 17:04:28 +01:00
mpeterv
373d56d4be Fix order of arguments in assertions
The first argument must be the expected value, the second - the actual one.
2014-11-18 20:02:55 +03:00
kikito
e4a9c872b4 remove redundant describe block 2014-09-19 22:56:57 +02:00
kikito
f153849088 remove unused values & params 2014-09-19 22:54:35 +02:00
kikito
182e6f28c1 Fix float keys being masked in tables with array elements 2014-09-19 22:50:48 +02:00
kikito
99e8c03959 newline & indent options 2014-09-13 12:33:20 +02:00
kikito
9054ee1051 <key>, <metatable> -> inspect.KEY, inspect.METATABLE 2014-09-13 12:12:41 +02:00
kikito
1fb5373a45 Use '<key>' and '<metatable> on keys correctly 2014-09-12 15:36:38 +02:00
kikito
b9b780caad unindent in specs 2014-09-07 22:32:31 +02:00
kikito
2961caa14a process option handles keys as well as items 2014-08-16 19:44:35 +02:00
kikito
5ecaca9205 better test names 2014-08-16 16:50:29 +02:00
kikito
a1b30ad8a3 process now handles most values. But what to do with keys? 2014-07-06 18:44:31 +02:00
kikito
7195bfa423 remove filter option 2014-07-06 17:24:37 +02:00
kikito
a2ccd9220c extend filter with a path parameter. Fixes #12 2014-02-09 18:42:38 +01:00
Kodi Arfer
6373d7748a added more escaping tests 2014-01-07 08:56:28 -05:00
kikito
76138d86a7 added filter option 2013-09-15 13:02:45 +02:00
kikito
8a65da658a made depth an options parameter 2013-09-15 11:23:01 +02:00
Cheyi Lin
e6e4d07e51 add luajit cdata test 2013-06-27 18:05:19 +08:00
kikito
2b502e1a81 fixed metatable-related loop when a table is its own index. References #4 2013-01-21 00:49:22 +01:00
kikito
1514d86828 fix overflow when a table is its own metatable. References #4 2013-01-20 17:23:36 +01:00
kikito
0571e63e01 use busted for specs instead of telescope 2013-01-20 17:07:41 +01:00
kikito
f4eceb558a spacing in spec 2012-10-29 23:41:56 +01:00
kikito
78c4643ba0 made depth default to infinite 2012-10-29 23:32:44 +01:00
kikito
b744b7f3f8 removed table ids from tables that appear less than twice. Fixes #2 2012-10-29 23:26:49 +01:00
kikito
d01950cee3 removed should from specs. fixes #3 2012-10-29 21:11:20 +01:00
Enrique García Cota
4c92bad614 simplified spec running. Added new instructions for it. Managed case where __toString throws an error. Made local a function that was global by mistake 2011-08-13 00:52:55 +02:00
Enrique García Cota
8804f4f1a8 added counters for functions, tables, userdata and threads. updated to v1.1 2011-05-10 00:31:56 +02:00
Enrique García Cota
f46ce9b86b added __tostring comment at the beginning, if possible 2011-04-24 02:09:24 +02:00
Enrique García Cota
395b02ecbe added metatable support 2011-04-24 01:39:05 +02:00