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

benrr101 / node-taglib-sharp / 48387615

28 Oct 2023 05:25AM UTC coverage: 92.442% (+0.02%) from 92.427%
48387615

push

appveyor

benrr101
Ok two more tweaks

3250 of 4147 branches covered (0.0%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 2 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

58.33
/src/mpeg4/boxes/isoUserDataBox.ts
1
import Mpeg4Box from "./mpeg4Box";
1✔
2
import Mpeg4BoxHeader from "../mpeg4BoxHeader";
3
import Mpeg4BoxType from "../mpeg4BoxType";
1✔
4
import {ByteVector} from "../../byteVector";
5
import {File} from "../../file";
6
import {Guards} from "../../utils";
7

8
/**
9
 * This class extends @see Mpeg4Box to provide an implementation of a ISO/IEC 14496-12 UserDataBox.
10
 */
11
export default class IsoUserDataBox extends Mpeg4Box {
1✔
12
    private _parentTree: Mpeg4BoxHeader[];
13

14
    /**
15
     * Private constructor to force construction via static functions.
16
     */
17
    private constructor() {
18
        super();
113✔
19
    }
20

21
    /**
22
     * Constructs and initializes a new instance of @see IsoUserDataBox with a provided header and
23
     * handler by reading the contents from a specified file.
24
     * @param header A @see Mpeg4BoxHeader object containing the header to use for the new instance.
25
     * @param handlerType Type of the handler box object containing the handler that applies to the
26
     *     new instance, or undefined if no handler applies.
27
     * @returns A new instance of @see IsoUserDataBox
28
     */
29
    public static fromHeader(header: Mpeg4BoxHeader, handlerType: ByteVector): IsoUserDataBox {
30
        const instance = new IsoUserDataBox();
×
31
        instance.initializeFromHeader(header, handlerType);
×
32

33
        return instance;
×
34
    }
35

36
    /**
37
     * Constructs and initializes a new instance of @see IsoUserDataBox with no children.
38
     * @returns A new instance of @see IsoUserDataBox
39
     */
40
    public static fromEmpty(): IsoUserDataBox {
41
        const instance = new IsoUserDataBox();
113✔
42
        instance.initializeFromType(Mpeg4BoxType.UDTA);
113✔
43

44
        return instance;
113✔
45
    }
46

47
    /**
48
     * Gets the box headers for the current "udta" box and all parent boxes up to the top of the file.
49
     * @remarks Changes to the returned object will not be honored. Set the property to change it.
50
     */
51
    public get parentTree(): Mpeg4BoxHeader[] { return this._parentTree.slice(); }
×
52
    /**
53
     * Sets the box headers for the current "udta" box and all parent boxes up to the top of the file.
54
     * @internal
55
     */
56
    public set parentTree(v: Mpeg4BoxHeader[]) { this._parentTree = v; }
×
57
}
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