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

luttje / jestronaut / 13678218863

05 Mar 2025 02:25PM UTC coverage: 72.291% (+3.0%) from 69.283%
13678218863

Pull #13

github

web-flow
Merge da55321b3 into 20ac5a3b0
Pull Request #13: Async support (🚧WIP)

386 of 512 new or added lines in 14 files covered. (75.39%)

75 existing lines in 8 files now uncovered.

1568 of 2169 relevant lines covered (72.29%)

959.99 hits per line

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

71.43
/libs/jestronaut/utils/require.lua
1
local require = require
×
2

3
--- Ensures that any overridden require functions (at library load) are respected when
4
--- calling the given callback later (during testing). This is done by localizing the
5
--- require (see above) and then making that available globally for the duration of the
6
--- callback.
7
--- This is useful for requires that happen after the initial require override period.
8
--- @param callback fun(...: any): any
9
--- @vararg any
10
--- @return any
11
local function callRespectingRequireOverride(callback, ...)
12
    local oldRequire = _G.require
341✔
13
    _G.require = require
341✔
14
    local results = { callback(...) }
682✔
15
    _G.require = oldRequire
341✔
16

17
    return unpack(results)
341✔
18
end
19

UNCOV
20
return {
×
21
    callRespectingRequireOverride = callRespectingRequireOverride,
22
}
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