• 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

66.67
/src/mpeg4/boxes/appleAnnotationBox.ts
1
import Mpeg4Box from "./mpeg4Box";
1✔
2
import Mpeg4BoxHeader from "../mpeg4BoxHeader";
3
import {ByteVector} from "../../byteVector";
4

5
/**
6
 * This class extends @see Mpeg4Box to provide an implementation of an Apple AnnotationBox.
7
 */
8
export default class AppleAnnotationBox extends Mpeg4Box {
1✔
9
    /**
10
     * Private constructor to force construction via static functions.
11
     */
12
    private constructor() {
13
        super();
295✔
14
    }
15

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

28
        return instance;
×
29
    }
30

31
    /**
32
     * Constructs and initializes a new instance of @see AppleAnnotationBox of specified type with no children.
33
     * @param type A @see ByteVector object containing a 4-byte box type.
34
     * @returns A new instance of @see AppleAnnotationBox
35
     */
36
    public static fromType(type: ByteVector): AppleAnnotationBox {
37
        const instance = new AppleAnnotationBox();
295✔
38
        instance.initializeFromType(type);
295✔
39

40
        return instance;
295✔
41
    }
42
}
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

© 2025 Coveralls, Inc