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
7 years ago
kikito
bdf85c8f90
Splits specs into two, to illustrate the different handling of escaped control chars
9 years ago
kikito
1ca5576b59
Retab & spacing
9 years ago
Andreas Hofer
e091fcd43d
changed 'tostring' from a field of inspect to a local variable
9 years ago
Andreas Hofer
864066c51e
added more control characters to test case
9 years ago
Andreas Hofer
61d02902b3
fix problem reported by coverage analysis
9 years ago
Andreas Hofer
2a5205e53c
fix problem with escaping zero and other control characters
9 years ago
Andreas Hofer
d051ae061c
fix endless recursion when using inspect to reimplement global tostring
9 years ago
Andreas Hofer
d372d2ab08
fix problem with recursive tables when using the 'process' option
9 years ago
kikito
5673f2364d
Stops relying on rawlen/# to calculate the length of the sequence part of a table
...
Fixes #24
9 years ago
mpeterv
daaefbd870
Do not allow collecting weak tables while they are being inspected
...
Fixes #22
9 years ago
kikito
4f9761b631
fixes __len issue using rawlen instead of #t in a couple places
9 years ago
kikito
387a2f683a
adds test for rawlen
9 years ago
mpeterv
373d56d4be
Fix order of arguments in assertions
...
The first argument must be the expected value, the second - the actual one.
10 years ago
kikito
e4a9c872b4
remove redundant describe block
10 years ago
kikito
f153849088
remove unused values & params
10 years ago
kikito
182e6f28c1
Fix float keys being masked in tables with array elements
10 years ago
kikito
99e8c03959
newline & indent options
10 years ago
kikito
9054ee1051
<key>, <metatable> -> inspect.KEY, inspect.METATABLE
10 years ago
kikito
1fb5373a45
Use '<key>' and '<metatable> on keys correctly
10 years ago
kikito
b9b780caad
unindent in specs
10 years ago
kikito
2961caa14a
process option handles keys as well as items
10 years ago
kikito
5ecaca9205
better test names
10 years ago
kikito
a1b30ad8a3
process now handles most values. But what to do with keys?
11 years ago
kikito
7195bfa423
remove filter option
11 years ago
kikito
a2ccd9220c
extend filter with a path parameter. Fixes #12
11 years ago
Kodi Arfer
6373d7748a
added more escaping tests
11 years ago
kikito
76138d86a7
added filter option
11 years ago
kikito
8a65da658a
made depth an options parameter
11 years ago
Cheyi Lin
e6e4d07e51
add luajit cdata test
12 years ago
kikito
2b502e1a81
fixed metatable-related loop when a table is its own index. References #4
12 years ago
kikito
1514d86828
fix overflow when a table is its own metatable. References #4
12 years ago
kikito
0571e63e01
use busted for specs instead of telescope
12 years ago
kikito
f4eceb558a
spacing in spec
12 years ago
kikito
78c4643ba0
made depth default to infinite
12 years ago
kikito
b744b7f3f8
removed table ids from tables that appear less than twice. Fixes #2
12 years ago
kikito
d01950cee3
removed should from specs. fixes #3
12 years ago
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
14 years ago
Enrique García Cota
8804f4f1a8
added counters for functions, tables, userdata and threads. updated to v1.1
14 years ago
Enrique García Cota
f46ce9b86b
added __tostring comment at the beginning, if possible
14 years ago
Enrique García Cota
395b02ecbe
added metatable support
14 years ago
Enrique García Cota
c25b42a610
keys sorting is now explicitly tested
14 years ago
Enrique García Cota
80feaaf4d0
Depth control also working on keys
14 years ago
Enrique García Cota
4572d02f72
I didnt commit the right stuff on previous commit. fixing that
14 years ago
Enrique García Cota
71bf1a87a0
depth works on values. It was too easy
14 years ago
Enrique García Cota
4e3eb102ed
tables working quite well, I am happy :)
14 years ago
Enrique García Cota
b51be52bf0
nested dictionary tables start working
14 years ago
Enrique García Cota
51153a31c6
first tests with dictionary-type table are passing!
14 years ago
Enrique García Cota
ecf208a938
organized tests into groups
14 years ago
Enrique García Cota
87b3e1d82c
strings were a bit difficult
14 years ago