< Summary

Information
Class: TicTacToeApp.API.Response.ErrorResponse
Assembly: TicTacToeApp.API
File(s): /home/runner/work/TicTacToe/TicTacToe/TicTacToeApp.API/Response/ErrorResponse.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 20
Line coverage: 0%
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
.ctor(...)100%210%
get_StatusCode()100%210%
get_Message()100%210%
get_Detail()100%210%

File(s)

/home/runner/work/TicTacToe/TicTacToe/TicTacToeApp.API/Response/ErrorResponse.cs

#LineLine coverage
 1using System.Text.Json.Serialization;
 2
 3namespace TicTacToeApp.API.Response;
 4
 5public sealed class ErrorResponse
 6{
 07    public ErrorResponse(string statusCode, string? message = "", string? detail = "")
 8    {
 09        StatusCode = statusCode;
 010        Message = message;
 011        Detail = detail;
 012    }
 13
 14    [JsonInclude]
 015    internal string StatusCode { get; set; } = string.Empty;
 16    [JsonInclude]
 017    internal string? Message { get; set; } = string.Empty;
 18    [JsonInclude]
 019    internal string? Detail { get; set; } = string.Empty;
 20}