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

LukaJCB / ts-mls / 20945201760

13 Jan 2026 04:55AM UTC coverage: 95.199% (-0.5%) from 95.727%
20945201760

push

github

web-flow
Use CiphersuiteId instead of CiphersuiteName for internal values (#200)

* Use CiphersuiteId instead of CiphersuiteName for internal values

* Use ProtocolVersionValue instead of ProtocolVersionName

* Use CredentialTypeValue instead of CredentialTypeName

* Use DefaultProposalTypeValue instead of DefaultProposalTypeName

* Remove extensionType

* Refactor credential

* Cleanup

* Use LeafNodeSourceValue insteda of Name

* Cleanup

* Update NodeType and LeafNodeSource

* Update contentType

* Update resumptionPskusage & senderTypes

* Update wireformat and pskTypes

* Update ts-mls.api

412 of 421 branches covered (97.86%)

Branch coverage included in aggregate %.

193 of 208 new or added lines in 35 files covered. (92.79%)

6 existing lines in 3 files now uncovered.

2364 of 2495 relevant lines covered (94.75%)

75088.28 hits per line

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

50.0
/src/util/enumHelpers.ts
1
export function numberToEnum<S extends string, N extends number>(t: Record<S, N>): (n: number) => N | undefined {
2
  return (n) => (Object.values(t).includes(n) ? (n as N) : undefined)
23,461✔
3
}
4

5
export function reverseMap<T extends Record<string, number>>(obj: T): Record<number, string> {
UNCOV
6
  return Object.entries(obj).reduce(
×
UNCOV
7
    (acc, [key, value]) => ({
×
8
      ...acc,
9
      [value]: key,
10
    }),
11
    {},
12
  )
13
}
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