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

WolferyScripting / resclient-ts / #23

19 Aug 2025 04:06PM UTC coverage: 50.293% (+0.1%) from 50.191%
#23

push

DonovanDMC
1.0.7

218 of 274 branches covered (79.56%)

Branch coverage included in aggregate %.

1501 of 3144 relevant lines covered (47.74%)

10.75 hits per line

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

65.63
/lib/util/Debug.ts
1
import { formatWithOptions } from "node:util";
1✔
2

1✔
3

1✔
4
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
1✔
5
let debug: import("debug").Debug | undefined;
1✔
6
try {
1✔
7
    debug = (await import("debug")).default;
1✔
8
} catch {}
1!
9

1✔
10
let depth = 2;
1✔
11
export function Debug(namspace: string, arg0: unknown, ...args: Array<unknown>): void {
1✔
12
    if (typeof arg0 === "object" && arg0 !== null) {
38!
13
        arg0 = Object.create(arg0);
×
14
        for (const s of Object.getOwnPropertySymbols(arg0)) {
×
15
            Object.defineProperty(arg0, s, { enumerable: false });
×
16
        }
×
17
    }
×
18
    return debug ? debug(`resclient:${namspace}`)(formatWithOptions({ colors: true, showHidden: false, depth }, arg0, ...args)) : undefined;
38!
19
}
38✔
20

1✔
21
/**
1✔
22
 * Set the inspection depth for debug messages.
1✔
23
 * @param d The depth.
1✔
24
 */
1✔
25
export function setDebugDepth(d: number): void {
1✔
26
    depth = d;
×
27
}
×
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