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

adnsistemas / pdf-lib / #18

24 Mar 2026 08:15PM UTC coverage: 74.286% (+0.3%) from 74.001%
#18

push

David N. Abdala
Documentation change

2569 of 3981 branches covered (64.53%)

Branch coverage included in aggregate %.

7372 of 9401 relevant lines covered (78.42%)

297170.51 hits per line

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

80.0
/src/core/objects/PDFObject.ts
1
import { PDFClasses } from '../../api/objects';
54✔
2
import { MethodNotImplementedError } from '../errors';
54✔
3
import PDFContext from '../PDFContext';
4

5
class PDFObject {
6
  static className = () => PDFClasses.PDFObject;
83,875,105✔
7
  myClass(): PDFClasses {
8
    return PDFClasses.PDFObject;
×
9
  }
10

11
  registerChange() {
12
    throw new MethodNotImplementedError(
×
13
      this.constructor.name,
14
      'registerChange',
15
    );
16
  }
17
  clone(_context?: PDFContext): PDFObject {
18
    throw new MethodNotImplementedError(this.constructor.name, 'clone');
1✔
19
  }
20

21
  toString(): string {
22
    throw new MethodNotImplementedError(this.constructor.name, 'toString');
1✔
23
  }
24

25
  sizeInBytes(): number {
26
    throw new MethodNotImplementedError(this.constructor.name, 'sizeInBytes');
1✔
27
  }
28

29
  copyBytesInto(_buffer: Uint8Array, _offset: number): number {
30
    throw new MethodNotImplementedError(this.constructor.name, 'copyBytesInto');
1✔
31
  }
32
}
33

34
export default PDFObject;
54✔
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