• 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

0.0
/migrations/1727701600427-update_timestamp_trigger.ts
1
import { MigrationInterface, QueryRunner } from 'typeorm';
2

NEW
3
export class UpdateTimestampTrigger1727701600427 implements MigrationInterface {
×
NEW
4
  name = 'UpdateTimestampTrigger1727701600427';
×
5
  public async up(queryRunner: QueryRunner): Promise<void> {
NEW
6
    await queryRunner.query(`
×
7
        CREATE  FUNCTION update_updated_at()
8
        RETURNS TRIGGER AS $$
9
        BEGIN
10
            NEW.updated_at = now();
11
            RETURN NEW;
12
        END;
13
        $$ language 'plpgsql';`);
14
  }
15

16
  public async down(queryRunner: QueryRunner): Promise<void> {
NEW
17
    await queryRunner.query(`DROP FUNCTION IF EXISTS update_updated_at;`);
×
18
  }
19
}
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