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

nightconcept / almandine / 14716288366

28 Apr 2025 07:33PM UTC coverage: 94.065% (+56.3%) from 37.748%
14716288366

push

github

web-flow
Merge 0d9587658 into 78f97e22e

729 of 775 new or added lines in 15 files covered. (94.06%)

729 of 775 relevant lines covered (94.06%)

1.75 hits per line

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

76.92
/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

8
local manifest = {}
2✔
9

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

29
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