1 local pcall
, error = pcall
, error
3 local lunit
= require("lunit")
4 local assert_error
= lunit
.assert_error
6 -- Allow module to alter decoder
7 local function setDecoder(d
)
11 local function buildPatchedDecoder(f
, newDecoder
)
13 setDecoder(newDecoder
)
17 local function buildFailedPatchedDecoder(f
, newDecoder
)
19 setDecoder(newDecoder
)
25 buildPatchedDecoder
= buildPatchedDecoder
,
26 buildFailedPatchedDecoder
= buildFailedPatchedDecoder