示例工程 30-embedding-and-cpp

30-embedding-and-cpp/01-embed-config/_test.lua

lua · 0.3 KB

-- @runtimes lua54 luajit
local h = require("harness")
local m = require("main")
h.describe("嵌入配置", function()
	h.it("读取并校验", function()
		local r = m.run(function() end)
		h.eq(r.host, "db")
		h.eq(r.port, 5432)
		h.eq(r.debug, false)
	end)
end)
h.run()