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

safe-global / safe-client-gateway / 8185897869

07 Mar 2024 09:32AM UTC coverage: 93.175% (-0.3%) from 93.452%
8185897869

Pull #1264

github

iamacook
Allow optional values but default to `null`
Pull Request #1264: Migrate `CreateMessageDto` to `zod`

1726 of 2095 branches covered (82.39%)

Branch coverage included in aggregate %.

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

14 existing lines in 5 files now uncovered.

6397 of 6623 relevant lines covered (96.59%)

344.93 hits per line

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

78.57
/src/routes/locking/locking.controller.ts
1
import { LockingEvent } from '@/domain/locking/entities/locking-event.entity';
2
import { Rank } from '@/domain/locking/entities/rank.entity';
3
import { PaginationDataDecorator } from '@/routes/common/decorators/pagination.data.decorator';
82✔
4
import { RouteUrlDecorator } from '@/routes/common/decorators/route.url.decorator';
82✔
5
import { Page } from '@/routes/common/entities/page.entity';
6
import { PaginationData } from '@/routes/common/pagination/pagination.data';
82✔
7
import { LockingService } from '@/routes/locking/locking.service';
82✔
8
import { Controller, Get, Param } from '@nestjs/common';
82✔
9
import { ApiTags } from '@nestjs/swagger';
82✔
10

11
@ApiTags('locking')
12
@Controller({
13
  path: 'locking',
14
  version: '1',
15
})
16
export class LockingController {
82✔
17
  constructor(private readonly lockingService: LockingService) {}
1,034✔
18

19
  @Get('/:safeAddress/rank')
20
  async getRank(@Param('safeAddress') safeAddress: string): Promise<Rank> {
82✔
UNCOV
21
    return this.lockingService.getRank(safeAddress);
×
22
  }
23

24
  @Get('/leaderboard')
25
  async getLeaderboard(
82✔
26
    @RouteUrlDecorator() routeUrl: URL,
27
    @PaginationDataDecorator() paginationData: PaginationData,
28
  ): Promise<Page<Rank>> {
UNCOV
29
    return this.lockingService.getLeaderboard({ routeUrl, paginationData });
×
30
  }
31

32
  @Get('/:safeAddress/history')
33
  async getLockingHistory(
82✔
34
    @Param('safeAddress') safeAddress: string,
35
    @RouteUrlDecorator() routeUrl: URL,
36
    @PaginationDataDecorator() paginationData: PaginationData,
37
  ): Promise<Page<LockingEvent>> {
UNCOV
38
    return this.lockingService.getLockingHistory({
×
39
      safeAddress,
40
      routeUrl,
41
      paginationData,
42
    });
43
  }
44
}
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

© 2026 Coveralls, Inc