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

f2calv / CasCap.Common / 21944072045

12 Feb 2026 11:06AM UTC coverage: 4.045%. Remained the same
21944072045

push

github

web-flow
Merge pull request #244 from f2calv/f2calv/2026-02-updates

F2calv/2026 02 updates - letting copilot loose

4 of 334 branches covered (1.2%)

Branch coverage included in aggregate %.

0 of 1 new or added line in 1 file covered. (0.0%)

32 of 556 relevant lines covered (5.76%)

0.38 hits per line

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

0.0
/src/CasCap.Common.Serialization.Json/Converters/StringToIntConverter.cs
1
namespace CasCap.Common.Converters;
2

3
public class StringToIntConverter : JsonConverter<int?>
4
{
5
    public override int? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
6
    {
7
        if (reader.TokenType == JsonTokenType.Null) return null;
×
8
        return int.TryParse(reader.GetString(), out var t) ? t : null;
×
9
    }
10

11
    public override void Write(Utf8JsonWriter writer, int? intValue, JsonSerializerOptions options)
12
    {
13
        if (intValue.HasValue)
×
NEW
14
            writer.WriteRawValue(intValue.Value.ToString());
×
15
    }
×
16
}
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