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

safe-global / safe-client-gateway / 12885265362

21 Jan 2025 10:43AM UTC coverage: 91.003% (-0.02%) from 91.025%
12885265362

push

github

usame-algan
Implement createUserWithWallet and controller method

2946 of 3555 branches covered (82.87%)

Branch coverage included in aggregate %.

18 of 26 new or added lines in 5 files covered. (69.23%)

9890 of 10550 relevant lines covered (93.74%)

470.23 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
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
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