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

visgl / loaders.gl / 24153816851

08 Apr 2026 07:17PM UTC coverage: 53.247% (-12.1%) from 65.319%
24153816851

push

github

web-flow
chore: Move from tape to vitest (#3351)

8651 of 17291 branches covered (50.03%)

Branch coverage included in aggregate %.

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

2031 existing lines in 296 files now uncovered.

17563 of 31940 relevant lines covered (54.99%)

5279.54 hits per line

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

50.0
/modules/textures/src/texture-cube-array-loader.ts
1
// loaders.gl
2
// SPDX-License-Identifier: MIT
3
// Copyright (c) vis.gl contributors
4

5
import type {LoaderContext, LoaderWithParser} from '@loaders.gl/loader-utils';
6
import type {Texture} from '@loaders.gl/schema';
7
import type {TextureLoaderOptions as TextureApiLoaderOptions} from './lib/texture-api/texture-api-types';
8
import {VERSION} from './lib/utils/version';
9
import {
10
  parseCompositeImageManifest,
11
  testCompositeImageManifestShape,
12
  type ImageTextureCubeArrayManifest
13
} from './lib/composite-image/parse-composite-image';
14

15
export type TextureCubeArrayLoaderOptions = TextureApiLoaderOptions;
16
export type {ImageTextureCubeArrayManifest as TextureCubeArrayManifest};
17

18
export const TextureCubeArrayLoader = {
44✔
19
  dataType: null as unknown as Texture,
20
  batchType: null as never,
21
  id: 'texture-cube-array',
22
  name: 'Texture Cube Array',
23
  module: 'textures',
24
  version: VERSION,
25
  extensions: [],
26
  mimeTypes: [],
27
  text: true,
28
  worker: false,
UNCOV
29
  testText: (text: string) => testCompositeImageManifestShape(text, 'image-texture-cube-array'),
×
30
  options: {
31
    image: {}
32
  },
33
  parse: async (
34
    arrayBuffer: ArrayBuffer,
35
    options?: TextureCubeArrayLoaderOptions,
36
    context?: LoaderContext
37
  ) =>
38
    await parseCompositeImageManifest(
×
39
      new TextDecoder().decode(arrayBuffer),
40
      'image-texture-cube-array',
41
      options,
42
      context
43
    ),
44
  parseText: async (
45
    text: string,
46
    options?: TextureCubeArrayLoaderOptions,
47
    context?: LoaderContext
48
  ) => await parseCompositeImageManifest(text, 'image-texture-cube-array', options, context)
1✔
49
} as const satisfies LoaderWithParser<Texture, never, TextureCubeArrayLoaderOptions>;
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