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

f2calv / CasCap.Common / 14508401207

17 Apr 2025 05:01AM UTC coverage: 0.32% (-0.01%) from 0.334%
14508401207

push

github

web-flow
F2calv/2025 02 updates2 (#216)

* IAsyncEnumerable Ticks + cancellationtokens

* more tidy

* added xml comments

* consolidate

* xml comments and tests added

* fixes

* extension tweaks/additions

* nuget updates

* fix xml comments

* xml comments

* nuget updates

* INumber ext fun

* CancellationTokens everywhere!

* nuget updates

* rm ConsoleUIService -> now using SpectreConsole

* tidy comments/usings

* sq tweaks

* lint fixes

0 of 352 branches covered (0.0%)

Branch coverage included in aggregate %.

0 of 69 new or added lines in 5 files covered. (0.0%)

3 existing lines in 3 files now uncovered.

3 of 585 relevant lines covered (0.51%)

0.01 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.Converters;
2

3
//TODO: move to common lib although this can be handled better by generics or even better by JsonNumberHandling.AllowReadingFromString
4
public class StringToIntConverter : JsonConverter<int?>
5
{
6
    public override int? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
7
    {
NEW
8
        if (reader.TokenType == JsonTokenType.Null) return null;
×
NEW
9
        return int.TryParse(reader.GetString(), out var t) ? t : null;
×
10
    }
11

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