Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.error: Add coerce and wrap methods to registry(?) objects | Matthew Wild | 2020-12-09 | 1 | -0/+70 |
| | |||||
* | Merge 0.11->trunk | Kim Alvefur | 2020-11-11 | 1 | -0/+1 |
|\ | |||||
| * | util.stanza: Reject ASCII control characters (fixes #1606) | Kim Alvefur | 2020-11-11 | 1 | -0/+1 |
| | | |||||
* | | util_paths_spec: Trim trailing white space | Kim Alvefur | 2020-10-17 | 1 | -1/+1 |
| | | | | | | | | And add spacing between describe() blocks | ||||
* | | util.paths: Add some tests | Kim Alvefur | 2020-10-17 | 1 | -0/+39 |
| | | |||||
* | | Merge 0.11->trunk | Matthew Wild | 2020-10-16 | 1 | -0/+93 |
|\| | |||||
| * | util.debug: Fix locals being reported under wrong stack frame in some cases ↵ | Matthew Wild | 2020-10-16 | 1 | -0/+93 |
| | | | | | | | | (+tests!!) | ||||
* | | Merge 0.11->trunk | Kim Alvefur | 2020-10-15 | 1 | -0/+41 |
|\| | |||||
| * | util.strbitop: Add tests covering basics | Kim Alvefur | 2020-10-15 | 1 | -0/+41 |
| | | | | | | | | Also as docs | ||||
* | | Merge 0.11->trunk | Matthew Wild | 2020-10-15 | 1 | -4/+14 |
|\| | |||||
| * | net.websocket.frames: Add test for empty frame with MASK and key set | Matthew Wild | 2020-10-15 | 1 | -0/+10 |
| | | |||||
| * | net.websocket.frames: Use C string XOR implementation | Kim Alvefur | 2020-10-14 | 1 | -1/+1 |
| | | |||||
| * | net.websocket.frames: Add small test covering xor-masking | Kim Alvefur | 2020-10-14 | 1 | -0/+13 |
| | | | | | | | | This is basically a recording of current behavior, to detect changes. | ||||
* | | Merge 0.11->trunk | Kim Alvefur | 2020-10-12 | 1 | -0/+1 |
|\| | |||||
| * | util.dbuffer: Expose length as :len() method, like strings | Kim Alvefur | 2020-10-12 | 1 | -0/+1 |
| | | | | | | | | Ref #1598 | ||||
| * | Merge | Matthew Wild | 2020-09-30 | 1 | -0/+130 |
| |\ | |||||
| | * | util.dbuffer: Simplify test case | Kim Alvefur | 2020-08-24 | 1 | -0/+130 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | An earlier theory involved the bug being related to collapsing multiple items, so it exercised that too. Also correct the comment, it referred to the space in "hello world" in an earlier version before the test string was changed to "foobar", which was what was tested in a REPL | ||||
* | | | Merge 0.11->trunk | Matthew Wild | 2020-09-30 | 1 | -1/+19 |
|\| | | |||||
| * | | util.indexedbheap: Fix heap datastructure corruption in ↵ | Waqas Hussain | 2020-09-29 | 1 | -0/+33 |
| |/ | | | | | | | :reschedule(smaller_value) | ||||
* | | util.error: Drop registry initialization with namespace as key | Kim Alvefur | 2020-09-28 | 1 | -11/+4 |
| | | | | | | | | Enough complexity with compact vs normal and with/without namespace | ||||
* | | util.error: Expand compact registries into normal form internally | Kim Alvefur | 2020-09-28 | 1 | -0/+32 |
| | | | | | | | | Also the exposed form on the table returned from init() | ||||
* | | util.error: Add a "compact mode" for registries | Kim Alvefur | 2020-09-28 | 1 | -0/+21 |
| | | | | | | | | Inspired by the older registry in pubsub.lib.lua | ||||
* | | util.error: Cover registry initialization in test | Kim Alvefur | 2020-09-28 | 1 | -0/+20 |
| | | |||||
* | | util.error: Collect Application-Specific Conditions from stanza errors | Kim Alvefur | 2020-09-26 | 1 | -1/+2 |
| | | |||||
* | | util.error: Extract error originator from stanza errors | Kim Alvefur | 2020-09-26 | 1 | -1/+2 |
| | | |||||
* | | util.stanza: Extract Application-Specific Condition from errors | Kim Alvefur | 2020-09-26 | 1 | -0/+13 |
| | | | | | | | | API change | ||||
* | | spec.stanza spec: Split up util.error related tests | Kim Alvefur | 2020-09-26 | 1 | -0/+8 |
| | | |||||
* | | util.stanza: Support Application-Specific Conditions in util.error | Kim Alvefur | 2020-09-26 | 1 | -1/+13 |
| | | |||||
* | | util.stanza: Get 'by' from context instead | Kim Alvefur | 2020-09-26 | 1 | -1/+1 |
| | | | | | | | | | | | | | | Zash> <error by=?> should go where? extra.by? context? source? Zash> In Prosody this would usually be module.host or a bare user/room JID MattJ> Zash: context MattJ> context.by, basically the opposite of context.actor | ||||
* | | util.stanza: Support inclusion of <gone> URI from util.error object | Kim Alvefur | 2020-09-26 | 1 | -0/+5 |
| | | |||||
* | | util.stanza: Support getting 'by' from util.error object | Kim Alvefur | 2020-09-26 | 1 | -1/+2 |
| | | |||||
* | | util.error: Add well-known field 'extra' | Kim Alvefur | 2020-09-26 | 1 | -0/+8 |
| | | | | | | | | | | A place for various extra fields and edge cases of the stanza error data model, e.g. the URI field of <gone> | ||||
* | | util.dataforms: Add support for validating (integer) ranges | Kim Alvefur | 2019-11-21 | 1 | -0/+9 |
| | | |||||
* | | util.interpolation: Add test for ~ when value is false (not just nil) | Matthew Wild | 2020-09-09 | 1 | -3/+7 |
| | | |||||
* | | util.interpolation: Add '~' as the opposite of '&' (render sub-block if falsy) | Matthew Wild | 2020-09-09 | 1 | -1/+11 |
| | | | | | | | | One more magic character consumed! | ||||
* | | util.event: Add luacheck annotation to unused parameter in tests | Matthew Wild | 2020-09-03 | 1 | -1/+1 |
| | | |||||
* | | util.events: Add set_debug_hook() method | Matthew Wild | 2020-09-03 | 1 | -0/+38 |
| | | | | | | | | | | | | Hook signature: ret = debug_hook(handler, event_name, event_data) | ||||
* | | util.jid: Add test coverage for XEP-0106: JID Escaping functions | Kim Alvefur | 2020-08-28 | 1 | -0/+50 |
| | | |||||
* | | util.dbuffer: Simplify test case | Kim Alvefur | 2020-08-24 | 1 | -3/+2 |
| | | | | | | | | | | | | | | | | | | An earlier theory involved the bug being related to collapsing multiple items, so it exercised that too. Also correct the comment, it referred to the space in "hello world" in an earlier version before the test string was changed to "foobar", which was what was tested in a REPL | ||||
* | | util.dbuffer: Fix :sub() not working with partially-consumed chunks (thanks ↵ | Matthew Wild | 2020-08-24 | 1 | -1/+1 |
| | | | | | | | | | | | | Zash for test case) This also appears to fix some bugs with chunk-encoded streams in net.http.parser. | ||||
* | | util.dbuffer: Add failing test case involving :sub after :discard | Kim Alvefur | 2020-08-24 | 1 | -0/+9 |
| | | |||||
* | | mod_external_services: XEP-0215: External Service Discovery | Kim Alvefur | 2020-07-18 | 2 | -0/+69 |
| | | |||||
* | | net.http.parser: Allow configuration of the chunk size fed to the parser | Matthew Wild | 2020-08-21 | 1 | -1/+3 |
| | | |||||
* | | net.http.parser: Switch tests so that CRLF conversion of input data is optional | Matthew Wild | 2020-08-21 | 1 | -7/+10 |
| | | |||||
* | | net.http.parser: Fix incorrect path in test | Matthew Wild | 2020-08-21 | 1 | -1/+1 |
| | | |||||
* | | net.http.parser: Add failing test for (large?) chunk-encoded responses | Matthew Wild | 2020-08-21 | 2 | -0/+27 |
| | | |||||
* | | util.dbuffer: Fix traceback when :collapse() is called on empty buffer | Matthew Wild | 2020-08-20 | 1 | -0/+12 |
| | | |||||
* | | util.dataforms: Add more XEP-0211 media element test coverage | Kim Alvefur | 2020-08-16 | 1 | -0/+28 |
| | | |||||
* | | util.dataforms: Convert media element sizes to avoid error on Lua 5.3 | Kim Alvefur | 2020-08-16 | 1 | -0/+15 |
| | | | | | | | | | | | | | | | | The stanza API does not accept number values and threw an error due to the height and width attributes of the media element (XEP-0221). This part had no test coverage previously, explaining why it was not discovered until now. | ||||
* | | net.http.parser: Allow specifying sink for large request bodies | Kim Alvefur | 2020-08-01 | 1 | -3/+5 |
| | | | | | | | | | | | | | | This enables uses such as saving uploaded files directly to a file on disk or streaming parsing of payloads. See #726 |