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

DanielXMoore / Civet / 18418867079

10 Oct 2025 09:28PM UTC coverage: 91.606% (-0.008%) from 91.614%
18418867079

push

github

web-flow
Merge pull request #1809 from DanielXMoore/expressionized-if-block-fix

Fix expressionization of `if` in some cases, improve errors from threads

3706 of 4035 branches covered (91.85%)

Branch coverage included in aggregate %.

15 of 18 new or added lines in 5 files covered. (83.33%)

18994 of 20745 relevant lines covered (91.56%)

16463.71 hits per line

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

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

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

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

×
10
  parentPort!.on 'message', {id:: number, op:: string, args:: any[]} =>
×
11
    try
×
12
      let result
×
13
      switch op
×
14
        when "compile"
×
15
          result = await (compile as any) ...args
×
16
        else
×
NEW
17
          throw new Error `Unknown operation: ${op}`
×
18
      // If we pass in an `errors` option, its modification is part of output
×
19
      parentPort!.postMessage {id, result, errors: args[1]?.errors}
×
20
    catch error
×
21
      console.log `Civet worker failed to compile:`, error
×
22
      parentPort!.postMessage {id, error: {
×
23
        type: error.constructor.name
×
24
        error.{name,message}
×
25
      }}
×
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