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

RobinTail / express-zod-api / 15980543093

30 Jun 2025 06:17PM UTC coverage: 100.0%. Remained the same
15980543093

Pull #2778

github

web-flow
Merge fc817f046 into 22f3987ec
Pull Request #2778: chore(deps): update typescript-eslint and its rule tester (used by migration) to v8.35.1

1230 of 1273 branches covered (96.62%)

3994 of 3994 relevant lines covered (100.0%)

361.86 hits per line

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

100.0
/express-zod-api/src/depends-on-method.ts
1
import * as R from "ramda";
6✔
2
import { AbstractEndpoint } from "./endpoint";
3
import { Method } from "./method";
4
import { Routable } from "./routable";
6✔
5

6
export class DependsOnMethod extends Routable {
6✔
7
  readonly #endpoints: ConstructorParameters<typeof DependsOnMethod>[0];
50✔
8

9
  constructor(endpoints: Partial<Record<Method, AbstractEndpoint>>) {
50✔
10
    super();
72✔
11
    this.#endpoints = endpoints;
72✔
12
  }
72✔
13

14
  /**
15
   * @desc [method, endpoint]
16
   * @internal
17
   * */
18
  public get entries() {
50✔
19
    const nonempty = R.filter(
60✔
20
      (pair): pair is [Method, AbstractEndpoint] => Boolean(pair[1]),
60✔
21
      Object.entries(this.#endpoints),
60✔
22
    );
60✔
23
    return Object.freeze(nonempty);
60✔
24
  }
60✔
25

26
  public override deprecated() {
50✔
27
    const deprecatedEndpoints = Object.entries(this.#endpoints).reduce(
6✔
28
      (agg, [method, endpoint]) =>
6✔
29
        Object.assign(agg, { [method]: endpoint.deprecated() }),
6✔
30
      {} as ConstructorParameters<typeof DependsOnMethod>[0],
6✔
31
    );
6✔
32
    return new DependsOnMethod(deprecatedEndpoints) as this;
6✔
33
  }
6✔
34
}
50✔
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