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

visgl / loaders.gl / 25798238260

13 May 2026 12:10PM UTC coverage: 60.607% (+0.3%) from 60.27%
25798238260

push

github

web-flow
feat(json) GeoJSON -> geoarrow, schema, logging  (#3399)

13466 of 24516 branches covered (54.93%)

Branch coverage included in aggregate %.

448 of 541 new or added lines in 12 files covered. (82.81%)

1264 existing lines in 117 files now uncovered.

27516 of 43103 relevant lines covered (63.84%)

15056.99 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()) {
55!
12
    return false;
×
13
  }
14

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

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

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