-- @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.address, "db:5432") end) h.it("空表用默认值", function() local r = m.run(function() end) h.eq(r.empty, "localhost:8080") end) end) h.run()