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

safe-global / safe-client-gateway / 8092707052

28 Feb 2024 09:25PM UTC coverage: 93.639% (-0.03%) from 93.665%
8092707052

Pull #1214

github

iamacook
Merge branch 'main' into trusted-incoming-transfers
Pull Request #1214: Add `trusted` query param. to `incoming-transfers` endpoint

1673 of 2001 branches covered (83.61%)

Branch coverage included in aggregate %.

17 of 17 new or added lines in 3 files covered. (100.0%)

3 existing lines in 1 file now uncovered.

6159 of 6363 relevant lines covered (96.79%)

349.8 hits per line

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

60.0
/src/routes/transactions/entities/__tests__/human-description.builder.ts
1
import { Builder, IBuilder } from '@/__tests__/builder';
2✔
2
import {
2✔
3
  RichAddressFragment,
4
  RichTokenValueFragment,
5
  RichTextFragment,
6
  RichDecodedInfoFragment,
7
  RichFragmentType,
8
} from '@/routes/transactions/entities/human-description.entity';
9
import { faker } from '@faker-js/faker';
2✔
10

11
function richTokenValueFragmentBuilder(): IBuilder<RichTokenValueFragment> {
12
  return new Builder<RichTokenValueFragment>()
×
13
    .with('type', RichFragmentType.TokenValue)
14
    .with('value', faker.string.numeric())
15
    .with('symbol', faker.finance.currencySymbol())
16
    .with('logoUri', faker.image.avatar());
17
}
18

19
function richTextFragmentBuilder(): IBuilder<RichTextFragment> {
UNCOV
20
  return new Builder<RichTextFragment>()
×
21
    .with('type', RichFragmentType.Text)
22
    .with('value', faker.word.words());
23
}
24

25
function richAddressFragmentBuilder(): IBuilder<RichAddressFragment> {
UNCOV
26
  return new Builder<RichAddressFragment>()
×
27
    .with('type', RichFragmentType.Address)
28
    .with('value', faker.finance.ethereumAddress());
29
}
30

31
const humanDescriptionBuilders: Array<() => IBuilder<RichDecodedInfoFragment>> =
32
  [
2✔
33
    richTokenValueFragmentBuilder,
34
    richTextFragmentBuilder,
35
    richAddressFragmentBuilder,
36
  ];
37

38
export function buildHumanDescription(): RichDecodedInfoFragment[] {
2✔
39
  return Array.from({ length: faker.number.int({ min: 0, max: 6 }) }, () =>
2✔
UNCOV
40
    faker.helpers.arrayElement(humanDescriptionBuilders)().build(),
×
41
  );
42
}
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