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
)
10 module("testutil", package
.seeall
)
11 function buildPatchedDecoder(f
, newDecoder
)
13 setDecoder(newDecoder
)
17 function buildFailedPatchedDecoder(f
, newDecoder
)
19 setDecoder(newDecoder
)