示例工程 32-openresty-and-redis
32-openresty-and-redis/02-cosocket-pattern/_test.lua
-- @runtimes lua54
local h = require("harness")
local m = require("main")
h.describe("cosocket stub", function()
h.it("连接与接收", function()
local r = m.run(function() end)
h.eq(r.connected, true)
h.truthy(r.bytes > 0)
end)
end)
h.run()