• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nightconcept / almandine / 14715174283

28 Apr 2025 06:32PM UTC coverage: 37.748%. First build
14715174283

push

github

web-flow
Merge 789647aa5 into 78f97e22e

477 of 566 new or added lines in 14 files covered. (84.28%)

1693 of 4485 relevant lines covered (37.75%)

11.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.91
/src/utils/manifest.lua
1
--[[
2
  Manifest Loader Utility
3

4
  Provides functions to safely load the project manifest (project.lua) with validation.
5
]]--
6

7
local manifest = {}
2✔
8

9
--- Safely load the project manifest.
10
-- @param path string Path to the manifest file (default: "project.lua").
11
-- @return table|nil, string|nil Manifest table or nil and error message.
12
function manifest.safe_load_project_manifest(path)
2✔
13
  path = path or "project.lua"
3✔
14
  local chunk, err = loadfile(path)
3✔
15
  if not chunk then return nil, err end
3✔
16
  local ok, result = pcall(chunk)
3✔
17
  if not ok then return nil, result end
3✔
18
  if type(result) ~= "table" then
3✔
NEW
19
    return nil, "Manifest must return a table"
×
20
  end
21
  return result, nil
3✔
22
end
23

24
return manifest
2✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc