HEX
Server: LiteSpeed
System: Linux s3.sitechai.com 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: workzeni (2217)
PHP: 8.1.32
Disabled: mail, show_source, system, shell_exec, passthru, exec, eval, shell
Upload Files
File: //opt/alt/luajit/share/lua/raven/senders/test.lua
-- vim: st=4 sts=4 sw=4 et:
-- Test sender for running the test suite without spawning an actual server.
--
-- @module raven.senders.test
-- @copyright 2014-2017 CloudFlare, Inc.
-- @license BSD 3-clause (see LICENSE file)
local cjson = require 'cjson'


local function new()
    return {
        events = {},
        send = function(self, json_str)
            table.insert(self.events, cjson.decode(json_str))
            return true
        end,
    }
end

return {
    new = new,
}