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

safe-global / safe-client-gateway / 11367733917

16 Oct 2024 02:24PM UTC coverage: 90.591% (-0.6%) from 91.148%
11367733917

Pull #1988

github

PooyaRaki
Refactor unit tests, initializes postgres database on module startup, reverts v1 migration configuration
Pull Request #1988: OrmMigrationAndLogger

2655 of 3258 branches covered (81.49%)

Branch coverage included in aggregate %.

89 of 160 new or added lines in 17 files covered. (55.63%)

8802 of 9389 relevant lines covered (93.75%)

409.57 hits per line

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

80.0
/src/datasources/db/v2/database-initialize.hook.ts
1
import { PostgresDatabaseService } from '@/datasources/db/v2/postgres-database.service';
104✔
2
import { Inject, Injectable, type OnModuleInit } from '@nestjs/common';
104✔
3

4
@Injectable()
5
export class DatabaseInitializeHook implements OnModuleInit {
104✔
6
  public constructor(
7
    @Inject(PostgresDatabaseService)
8
    private readonly postgresDatabaseService: PostgresDatabaseService,
4✔
9
  ) {
10
    //
11
  }
12

13
  public async onModuleInit(): Promise<void> {
NEW
14
    await this.postgresDatabaseService.initializeDatabaseConnection();
×
15
  }
16
}
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