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

safe-global / safe-client-gateway / 7085686543

04 Dec 2023 11:06AM UTC coverage: 89.935% (+0.2%) from 89.734%
7085686543

Pull #895

github

fmrsabino
Add test for unknown recovery transaction
Pull Request #895: Add test for unknown recovery transaction attempt

1412 of 1701 branches covered (0.0%)

Branch coverage included in aggregate %.

45 of 47 new or added lines in 11 files covered. (95.74%)

23 existing lines in 6 files now uncovered.

5272 of 5731 relevant lines covered (91.99%)

152.0 hits per line

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

85.71
/src/datasources/db/postgres-database.module.ts
1
import * as postgres from 'postgres';
62✔
2
import { Module } from '@nestjs/common';
62✔
3
import { PostgresDatabaseShutdownHook } from '@/datasources/db/postgres-database.shutdown.hook';
62✔
4
import { IConfigurationService } from '@/config/configuration.service.interface';
62✔
5
import { PostgresDatabaseMigrationHook } from '@/datasources/db/postgres-database.migration.hook';
62✔
6

7
function dbFactory(configurationService: IConfigurationService): postgres.Sql {
UNCOV
8
  return postgres({
×
9
    host: configurationService.getOrThrow('db.postgres.host'),
10
    port: configurationService.getOrThrow('db.postgres.port'),
11
    db: configurationService.getOrThrow('db.postgres.database'),
12
    user: configurationService.getOrThrow('db.postgres.username'),
13
    password: configurationService.getOrThrow('db.postgres.password'),
14
  });
15
}
16

17
@Module({
18
  providers: [
19
    {
20
      provide: 'DB_INSTANCE',
21
      useFactory: dbFactory,
22
      inject: [IConfigurationService],
23
    },
24
    PostgresDatabaseShutdownHook,
25
    PostgresDatabaseMigrationHook,
26
  ],
27
  exports: ['DB_INSTANCE'],
28
})
29
export class PostgresDatabaseModule {}
62✔
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