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

benrr101 / node-taglib-sharp / 48387633

28 Oct 2023 05:34AM UTC coverage: 92.442% (+0.5%) from 91.899%
48387633

push

appveyor

web-flow
Merge 6a78b5713 into f0c9477b7

3250 of 4147 branches covered (0.0%)

Branch coverage included in aggregate %.

1763 of 1763 new or added lines in 39 files covered. (100.0%)

26753 of 28309 relevant lines covered (94.5%)

422.49 hits per line

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

22.22
/src/mpeg4/boxes/unknownBox.ts
1
import Mpeg4Box from "./mpeg4Box";
1✔
2
import Mpeg4BoxHeader from "../mpeg4BoxHeader";
3
import {ByteVector} from "../../byteVector";
4
import {File} from "../../file";
5

6
export default class UnknownBox extends Mpeg4Box {
1✔
7
    /**
8
     * Private constructor to force construction via static functions.
9
     */
10
    private constructor() {
11
        super();
×
12
    }
13

14
    /**
15
     * Constructs and initializes a new instance of @see UnknownBox with a provided header and handler
16
     * by reading the contents from a specified file.
17
     * @param header A @see Mpeg4BoxHeader object containing the header to use for the new instance.
18
     * @param file A @see File object to read the contents of the box from.
19
     * @param handlerType Type of the handler box object containing the handler that applies to the
20
     *     new instance, or undefined if no handler applies.
21
     * @returns A new instance of @see UnknownBox
22
     */
23
    public static fromFile(header: Mpeg4BoxHeader, file: File, handlerType: ByteVector): UnknownBox {
24
        const instance = new UnknownBox();
×
25
        instance.initializeFromHeader(header, handlerType);
×
26
        instance.data = file.readBlock(instance.dataSize > 0 ? instance.dataSize : 0);
×
27

28
        return instance;
×
29
    }
30
}
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