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

AndreuCodina / CrossValidation / 6145012489

11 Sep 2023 10:15AM UTC coverage: 96.067% (+2.6%) from 93.42%
6145012489

Pull #88

github

web-flow
Merge 917fbe270 into d3ce57897
Pull Request #88: Update problem details

470 of 516 branches covered (0.0%)

Branch coverage included in aggregate %.

98 of 98 new or added lines in 10 files covered. (100.0%)

1655 of 1696 relevant lines covered (97.58%)

166.8 hits per line

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

78.57
/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; }
49✔
7
    public string? Title { get; set; }
52✔
8
    public int? Status { get; set; }
54✔
9
    public string? Detail { get; set; }
×
10
    public string? Instance { get; set; }
×
11
    public IEnumerable<CrossValidationProblemDetailsError>? Errors { get; set; }
58✔
12
    public CrossValidationProblemDetailsException? Exception { get; set; }
40✔
13
    public required string TraceId { get; set; }
40✔
14
    public string? CodeUrl { get; set; }
×
15

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

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