Mercurial > prosody-hg
view util/xpcall.lua @ 12755:a09dacf660d2
util.datetime: Add some missing test cases
You guessed it, mutation testing.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 08 Oct 2022 23:55:22 +0100 |
| parents | cfc7b2f7251e |
| children | d10957394a3c |
line wrap: on
line source
local xpcall = xpcall; if select(2, xpcall(function (x) return x end, function () end, "test")) ~= "test" then xpcall = require"util.compat".xpcall; end return { xpcall = xpcall; };
