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

hyperledger-identus / sdk-ts / 14536530200

18 Apr 2025 02:17PM UTC coverage: 82.802% (+7.3%) from 75.544%
14536530200

Pull #419

github

web-flow
Merge d20157089 into 0bddae204
Pull Request #419: test: chai and sinon removal

1711 of 2060 branches covered (83.06%)

Branch coverage included in aggregate %.

1 of 4 new or added lines in 1 file covered. (25.0%)

1047 existing lines in 114 files now uncovered.

9401 of 11360 relevant lines covered (82.76%)

33.67 hits per line

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

82.35
/src/castor/did/prismDID/LongFormPrismDID.ts
1
import { DID } from "../../../domain/models";
2
import { CastorError } from "../../../domain/models/Errors";
1✔
3
import { PrismDIDMethodId } from "./PrismDIDMethodId";
1✔
4

5
export class LongFormPrismDID {
1✔
6
  private prismMethodId: PrismDIDMethodId;
7
  public readonly stateHash: string;
8
  public readonly encodedState: string;
9

10
  constructor(public readonly did: DID) {
1✔
11
    const methodId = new PrismDIDMethodId(did.methodId);
72✔
12
    const stateHash = methodId.sections.at(0);
72✔
13
    const encodedState = methodId.sections.at(1);
72✔
14

15
    if (methodId.sections.length !== 2 || stateHash === undefined || encodedState === undefined) {
72!
16
      throw new CastorError.InvalidLongFormDID();
×
UNCOV
17
    }
×
18

19
    this.prismMethodId = methodId;
72✔
20
    this.stateHash = stateHash;
72✔
21
    this.encodedState = encodedState;
72✔
22
  }
72✔
23
}
1✔
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