• 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

100.0
/modules/xml/src/xml-loader-with-parser.ts
1
// loaders.gl
2
// SPDX-License-Identifier: MIT
3
// Copyright (c) vis.gl contributors
4

5
import type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';
6
import type {ParseXMLOptions} from './lib/parsers/parse-xml';
7
import {parseXMLSync} from './lib/parsers/parse-xml';
8
import {XMLLoader as XMLLoaderMetadata} from './xml-loader';
9

10
const {preload: _XMLLoaderPreload, ...XMLLoaderMetadataWithoutPreload} = XMLLoaderMetadata;
5✔
11

12
export type XMLLoaderOptions = LoaderOptions & {
13
  xml?: ParseXMLOptions;
14
};
15

16
/**
17
 * Loader for XML files
18
 */
19
export const XMLLoaderWithParser = {
5✔
20
  ...XMLLoaderMetadataWithoutPreload,
UNCOV
21
  parse: async (arrayBuffer: ArrayBuffer, options?: XMLLoaderOptions) =>
22
    parseXMLSync(new TextDecoder().decode(arrayBuffer), {
23
      ...XMLLoaderWithParser.options.xml,
24
      ...options?.xml
25
    }),
26
  parseTextSync: (text: string, options?: XMLLoaderOptions) =>
64✔
27
    parseXMLSync(text, {...XMLLoaderWithParser.options.xml, ...options?.xml})
31✔
28
} as const satisfies LoaderWithParser<any, never, XMLLoaderOptions>;
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