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

AndreuCodina / CrossValidation / 6852608629

13 Nov 2023 04:09PM UTC coverage: 96.216%. Remained the same
6852608629

push

github

AndreuCodina
Update dependencies

471 of 516 branches covered (0.0%)

Branch coverage included in aggregate %.

1665 of 1704 relevant lines covered (97.71%)

166.37 hits per line

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

83.33
/src/CrossValidation.AspNetCore/CrossValidationProblemDetails.cs
1
namespace CrossValidation.AspNetCore;
2

3
// https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.problemdetails
4
public class CrossValidationProblemDetails
5
{
6
    public string? Type { get; set; }
50✔
7
    public string? Title { get; set; }
53✔
8
    public int? Status { get; set; }
55✔
9
    public string? Detail { get; set; }
×
10
    public string? Instance { get; set; }
×
11
    public IEnumerable<CrossValidationProblemDetailsError>? Errors { get; set; }
60✔
12
    public CrossValidationProblemDetailsException? Exception { get; set; }
40✔
13
    public required string TraceId { get; set; }
41✔
14

15
    public static string ErrorsPropertyName = GetPropertyName(nameof(Errors));
1✔
16
    public static string ExceptionPropertyName = GetPropertyName(nameof(Exception));
1✔
17
    public static string TraceIdPropertyName = GetPropertyName(nameof(TraceId));
1✔
18

19
    private static string GetPropertyName(string originalPropertyName)
20
    {
21
        return originalPropertyName[..1].ToLowerInvariant() + originalPropertyName[1..];
3✔
22
    }
23
}
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

© 2025 Coveralls, Inc