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

khu-khlug / sight-backend / 13014680052

28 Jan 2025 04:11PM UTC coverage: 57.757% (+0.01%) from 57.744%
13014680052

push

github

web-flow
fix: 회원 목록 조회 기능이 정상적으로 동작하도록 수정 (#90)

504 of 1412 branches covered (35.69%)

Branch coverage included in aggregate %.

0 of 4 new or added lines in 2 files covered. (0.0%)

9 existing lines in 3 files now uncovered.

1391 of 1869 relevant lines covered (74.42%)

6.43 hits per line

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

0.0
/src/app/interface/user/manager/UserManageController.ts
1
import { Controller, Get, HttpStatus, Query } from '@nestjs/common';
2
import { QueryBus } from '@nestjs/cqrs';
×
3
import { ApiOperation, ApiResponse } from '@nestjs/swagger';
×
4

×
5
import { Auth } from '@khlug/core/auth/Auth';
×
6
import { UserRole } from '@khlug/core/auth/UserRole';
7

8
import { ListUserRequestDto } from '@khlug/app/interface/user/manager/dto/ListUserRequestDto';
×
9
import { ListUserResponseDto } from '@khlug/app/interface/user/manager/dto/ListUserResponseDto';
10

11
import { ListUserQuery } from '@khlug/app/application/user/query/listUser/ListUserQuery';
×
12

×
13
@Controller()
14
export class UserManageController {
15
  constructor(private readonly queryBus: QueryBus) {}
16

17
  @Get('/manager/users')
18
  // @Auth([UserRole.MANAGER])
19
  @ApiOperation({ summary: '회원 목록 조회' })
20
  @ApiResponse({ status: HttpStatus.OK, type: ListUserResponseDto })
21
  async listUser(
22
    @Query() dto: ListUserRequestDto,
23
  ): Promise<ListUserResponseDto> {
UNCOV
24
    const query = new ListUserQuery({
×
25
      email: dto.email,
26
      name: dto.name,
UNCOV
27
      college: dto.college,
×
28
      grade: dto.grade,
29
      state: dto.state,
30
      limit: dto.limit,
31
      offset: dto.offset,
32
    });
33
    const result = await this.queryBus.execute(query);
34
    return ListUserResponseDto.buildFromQueryResult(result);
35
  }
UNCOV
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

© 2026 Coveralls, Inc