< Summary

Information
Class: Api.Auth.Setup
Assembly: Api
File(s): /home/runner/work/ProjectRead.ing/ProjectRead.ing/Api/Auth/Setup.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 24
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
RegisterServices(...)100%11100%
MapEndpoints(...)100%11100%

File(s)

/home/runner/work/ProjectRead.ing/ProjectRead.ing/Api/Auth/Setup.cs

#LineLine coverage
 1// SPDX-FileCopyrightText: 2026 Alper Çelik <[email protected]>
 2//
 3// SPDX-License-Identifier: AGPL-3.0-or-later
 4
 5using Api.Auth.Utils;
 6
 7namespace Api.Auth;
 8
 9public static class Setup
 10{
 11    public static void RegisterServices(IServiceCollection services)
 112    {
 113        services.AddScoped<ICurrentUserId, CurrentUserId>();
 114        services.AddHttpContextAccessor();
 115    }
 16
 17    public static void MapEndpoints(IEndpointRouteBuilder route)
 118    {
 119        Endpoints.LoginEndpoints.Map(route);
 120        Endpoints.RegisterEndpoints.Map(route);
 21
 22
 123    }
 24}