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

DanielXMoore / Civet / 12342840214

15 Dec 2024 10:34PM UTC coverage: 91.536% (-0.4%) from 91.925%
12342840214

Pull #1646

github

web-flow
Merge d0a06a4dd into a2a17dadc
Pull Request #1646: Multithreaded compilation via Node workers and `threads` option or `CIVET_THREADS` environment variable; enable Node compiler cache; improve unplugin caching

3403 of 3695 branches covered (92.1%)

Branch coverage included in aggregate %.

30 of 134 new or added lines in 4 files covered. (22.39%)

17914 of 19593 relevant lines covered (91.43%)

14423.2 hits per line

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

0.0
/source/node-worker.civet
NEW
1
{ parentPort } from node:worker_threads
×
NEW
2

×
NEW
3
module from node:module
×
NEW
4
try module.enableCompileCache()
×
NEW
5

×
NEW
6
async do
×
NEW
7
  // import dynamically to use compile cache
×
NEW
8
  { compile } from ./main.civet
×
NEW
9

×
NEW
10
  parentPort!.on 'message', {id:: number, op:: string, args:: any[]} =>
×
NEW
11
    try
×
NEW
12
      let result
×
NEW
13
      switch op
×
NEW
14
        when "compile"
×
NEW
15
          result = await (compile as any) ...args
×
NEW
16
        else
×
NEW
17
          throw `Unknown operation: ${op}`
×
NEW
18
      parentPort!.postMessage {id, result}
×
NEW
19
    catch error
×
NEW
20
      parentPort!.postMessage {id, error}
×
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

© 2025 Coveralls, Inc