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

visgl / loaders.gl / 24139120841

08 Apr 2026 01:53PM UTC coverage: 65.319% (+30.2%) from 35.137%
24139120841

push

github

web-flow
chore: Replace puppeteer with playwright (#3350)

14216 of 18890 branches covered (75.26%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

3248 existing lines in 369 files now uncovered.

73509 of 115413 relevant lines covered (63.69%)

5763.45 hits per line

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

88.89
/modules/core/src/null-loader.ts
1
// loaders.gl
1✔
2
// SPDX-License-Identifier: MIT
1✔
UNCOV
3
// Copyright (c) vis.gl contributors
×
4

1✔
5
// __VERSION__ is injected by babel-plugin-version-inline
1✔
6
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
1✔
7
const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';
1!
8

1✔
9
import type {Loader, LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';
1✔
10
import {LoaderContext} from '@loaders.gl/loader-utils';
1✔
11

1✔
12
export type NullLoaderOptions = LoaderOptions & {
1✔
13
  null?: {};
1✔
14
};
1✔
15

1✔
16
/**
1✔
17
 * Loads any data and returns null (or optionally passes through data unparsed)
1✔
18
 */
1✔
19
export const NullWorkerLoader = {
1✔
20
  dataType: null,
1✔
21
  batchType: null as never,
1✔
22
  name: 'Null loader',
1✔
23
  id: 'null',
1✔
24
  module: 'core',
1✔
25
  version: VERSION,
1✔
26
  worker: true,
1✔
27
  mimeTypes: ['application/x.empty'],
1✔
UNCOV
28
  extensions: ['null'],
×
UNCOV
29
  tests: [() => false],
×
UNCOV
30
  options: {
×
31
    null: {}
1✔
32
  }
1✔
33
} as const satisfies Loader<null, never, NullLoaderOptions>;
1✔
34

1✔
35
/**
1✔
36
 * Loads any data and returns null (or optionally passes through data unparsed)
1✔
37
 */
1✔
38
export const NullLoader = {
1✔
39
  dataType: null,
1✔
40
  batchType: null,
1✔
41

1✔
42
  name: 'Null loader',
1✔
43
  id: 'null',
1✔
44
  module: 'core',
1✔
45
  version: VERSION,
1✔
46
  mimeTypes: ['application/x.empty'],
1✔
47
  extensions: ['null'],
3✔
48
  parse: async (
1✔
49
    arrayBuffer: ArrayBufferLike | ArrayBufferView,
×
50
    options?: NullLoaderOptions,
×
51
    context?: LoaderContext
×
52
  ) => parseSync(arrayBuffer, options || {}, context),
1✔
53
  parseSync,
1✔
54
  parseInBatches: async function* generator(asyncIterator, options, context) {
1✔
55
    for await (const batch of asyncIterator) {
3✔
56
      yield parseSync(batch, options, context);
6✔
57
    }
6✔
58
  },
1✔
59
  tests: [() => false],
1✔
60
  options: {
1✔
61
    null: {}
1✔
62
  }
1✔
63
} as const satisfies LoaderWithParser<null, null, NullLoaderOptions>;
1✔
64

1✔
65
/**
1✔
66
 * Returns arguments passed to the parse API in a format that can be transferred to a
1✔
67
 * web worker. The `context` parameter is stripped using JSON.stringify & parse.
1✔
68
 */
1✔
69
function parseSync(
7✔
70
  arrayBuffer: ArrayBufferLike | ArrayBufferView,
7✔
71
  options?: NullLoaderOptions,
7✔
72
  context?: LoaderContext
7✔
73
): null {
7✔
74
  return null;
7✔
75
}
7✔
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