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

safe-global / safe-client-gateway / 8567901999

05 Apr 2024 09:45AM UTC coverage: 92.655% (-0.2%) from 92.863%
8567901999

push

github

web-flow
Remove DomainModule (#1367)

- The `DomainModule` was removed in favor of smaller domain modules.
- Each feature now should explicitly declare which section of the domain is required in their respective modules.
- This increases encapsulation of the provided features. For Dynamic Modules, it allows loading only the required components instead of the entire domain.

1882 of 2279 branches covered (82.58%)

Branch coverage included in aggregate %.

114 of 114 new or added lines in 38 files covered. (100.0%)

20 existing lines in 3 files now uncovered.

6608 of 6884 relevant lines covered (95.99%)

355.78 hits per line

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

0.0
/src/domain/data-decoder/data-decoded.validator.ts
UNCOV
1
import { Injectable } from '@nestjs/common';
×
2
import { ValidateFunction } from 'ajv';
3
import { DataDecoded } from '@/domain/data-decoder/entities/data-decoded.entity';
UNCOV
4
import {
×
5
  DATA_DECODED_PARAMETER_SCHEMA_ID,
6
  DATA_DECODED_SCHEMA_ID,
7
  dataDecodedParameterSchema,
8
  dataDecodedSchema,
9
} from '@/domain/data-decoder/entities/schemas/data-decoded.schema';
10
import { IValidator } from '@/domain/interfaces/validator.interface';
UNCOV
11
import { GenericValidator } from '@/validation/providers/generic.validator';
×
UNCOV
12
import { JsonSchemaService } from '@/validation/providers/json-schema.service';
×
13

14
// TODO: Remove after creation, module, multisig and transaction type are migrated to zod
15
@Injectable()
UNCOV
16
export class DataDecodedValidator implements IValidator<DataDecoded> {
×
17
  private readonly isValidDataDecoded: ValidateFunction<DataDecoded>;
18

19
  constructor(
UNCOV
20
    private readonly genericValidator: GenericValidator,
×
UNCOV
21
    private readonly jsonSchemaService: JsonSchemaService,
×
22
  ) {
UNCOV
23
    this.jsonSchemaService.getSchema(
×
24
      DATA_DECODED_PARAMETER_SCHEMA_ID,
25
      dataDecodedParameterSchema,
26
    );
UNCOV
27
    this.isValidDataDecoded = this.jsonSchemaService.getSchema(
×
28
      DATA_DECODED_SCHEMA_ID,
29
      dataDecodedSchema,
30
    );
31
  }
32

33
  validate(data: unknown): DataDecoded {
34
    return this.genericValidator.validate(this.isValidDataDecoded, data);
×
35
  }
36
}
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