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

visgl / loaders.gl / 25070233425

28 Apr 2026 06:20PM UTC coverage: 59.434% (+0.01%) from 59.423%
25070233425

push

github

web-flow
website: Add tabs for navigating between format docs (#3407)

11310 of 20887 branches covered (54.15%)

Branch coverage included in aggregate %.

89 of 136 new or added lines in 13 files covered. (65.44%)

1742 existing lines in 132 files now uncovered.

23500 of 37682 relevant lines covered (62.36%)

16296.63 hits per line

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

84.21
/modules/loader-utils/src/lib/worker-loader-utils/encode-with-worker.ts
1
import {WorkerFarm} from '@loaders.gl/worker-utils';
2
import {Writer, WriterOptions} from '../../writer-types';
3
import {isBrowser} from '../env-utils/globals';
4

5
/**
6
 * Determines if a loader can parse with worker
7
 * @param loader
8
 * @param options
9
 */
10
export function canEncodeWithWorker(writer: Writer, options?: WriterOptions) {
11
  if (!WorkerFarm.isSupported()) {
51!
12
    return false;
×
13
  }
14

15
  const nodeWorkers = options?._nodeWorkers ?? options?.core?._nodeWorkers;
51✔
16
  const useWorkers = options?.worker ?? options?.core?.worker;
51✔
17

18
  // Node workers are still experimental
19
  if (!isBrowser && !nodeWorkers) {
51✔
20
    return false;
21✔
21
  }
22

UNCOV
23
  return Boolean(writer.worker && useWorkers);
30!
24
}
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