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

safe-global / safe-client-gateway / 12932982737

23 Jan 2025 03:52PM UTC coverage: 91.093% (-0.05%) from 91.145%
12932982737

Pull #2290

github

usame-algan
Add duplicate wallet error handling
Pull Request #2290: Implement `createUserWithWallet`

2927 of 3539 branches covered (82.71%)

Branch coverage included in aggregate %.

35 of 44 new or added lines in 7 files covered. (79.55%)

10 existing lines in 3 files now uncovered.

9938 of 10584 relevant lines covered (93.9%)

468.46 hits per line

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

81.82
/src/routes/users/users.controller.ts
1
import { ApiOkResponse, ApiTags } from '@nestjs/swagger';
112✔
2
import {
112✔
3
  Controller,
4
  HttpCode,
5
  HttpStatus,
6
  Post,
7
  Req,
8
  UseGuards,
9
} from '@nestjs/common';
10
import { UsersService } from '@/routes/users/users.service';
112✔
11
import { AuthGuard } from '@/routes/auth/guards/auth.guard';
112✔
12
import { Auth } from '@/routes/auth/decorators/auth.decorator';
112✔
13
import { AuthPayload } from '@/domain/auth/entities/auth-payload.entity';
112✔
14
import { Request } from 'express';
15
import { User } from '@/routes/users/entities/user.entity';
112✔
16

17
@ApiTags('users')
18
@Controller({ path: 'users', version: '1' })
19
export class UsersController {
112✔
NEW
UNCOV
20
  constructor(private readonly usersService: UsersService) {}
×
21

22
  @ApiOkResponse({ type: User })
23
  @Post()
24
  @HttpCode(HttpStatus.CREATED)
25
  @UseGuards(AuthGuard)
26
  async createUser(
112✔
27
    @Auth() authPayload: AuthPayload,
28
    @Req() req: Request,
29
  ): Promise<User> {
NEW
UNCOV
30
    return this.usersService.createUser({
×
31
      authPayload,
32
      clientIp: req.ip,
33
    });
34
  }
35
}
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