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

nestjs / nest / 4afa0176-b936-482c-ad88-b635a9db93b4

14 Jul 2025 11:37AM UTC coverage: 88.866% (-0.02%) from 88.886%
4afa0176-b936-482c-ad88-b635a9db93b4

Pull #15386

circleci

kamilmysliwiec
style: address linter warnings
Pull Request #15386: feat: enhance introspection capabilities

2714 of 3431 branches covered (79.1%)

101 of 118 new or added lines in 15 files covered. (85.59%)

12 existing lines in 1 file now uncovered.

7239 of 8146 relevant lines covered (88.87%)

16.53 hits per line

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

77.78
/packages/core/injector/modules-container.ts
1
import { Observable, ReplaySubject } from 'rxjs';
1✔
2
import { uid } from 'uid';
1✔
3
import { Module } from './module';
4

5
export class ModulesContainer extends Map<string, Module> {
1✔
6
  private readonly _applicationId = uid(21);
468✔
7
  private readonly _rpcTargetRegistry$ = new ReplaySubject<any>();
468✔
8

9
  /**
10
   * Unique identifier of the application instance.
11
   */
12
  get applicationId(): string {
13
    return this._applicationId;
2✔
14
  }
15

16
  /**
17
   * Retrieves a module by its identifier.
18
   * @param id The identifier of the module to retrieve.
19
   * @returns The module instance if found, otherwise undefined.
20
   */
21
  public getById(id: string): Module | undefined {
22
    return Array.from(this.values()).find(moduleRef => moduleRef.id === id);
×
23
  }
24

25
  /**
26
   * Returns the RPC target registry as an observable.
27
   * This registry contains all RPC targets registered in the application.
28
   * @returns An observable that emits the RPC target registry.
29
   */
30
  public getRpcTargetRegistry<T>(): Observable<T> {
NEW
31
    return this._rpcTargetRegistry$.asObservable();
×
32
  }
33

34
  /**
35
   * Adds an RPC target to the registry.
36
   * @param target The RPC target to add.
37
   */
38
  public addRpcTarget<T>(target: T): void {
39
    this._rpcTargetRegistry$.next(target);
4✔
40
  }
41
}
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