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

Aldaviva / InoreaderCs / 19232135934

10 Nov 2025 12:44PM UTC coverage: 91.25% (+0.1%) from 91.148%
19232135934

push

github

Aldaviva
Updated documentation, used renamed types from Unfucked.HTTP, changed varargs methods to not use varargs to avoid overload tie.

171 of 226 branches covered (75.66%)

25 of 28 new or added lines in 11 files covered. (89.29%)

657 of 720 relevant lines covered (91.25%)

9.44 hits per line

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

66.67
/InoreaderCs/Marshal/NonNullableStructReader.cs
1
using System.Text.Json;
2
using System.Text.Json.Serialization;
3

4
namespace InoreaderCs.Marshal;
5

6
internal class NonNullableStructReader<T>(JsonConverter<T?> nullableConverter, bool thrownOnNullRead = true): JsonConverter<T> where T: struct {
2✔
7

8
    /// <exception cref="JsonException"></exception>
9
    public override T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) =>
10
        nullableConverter.Read(ref reader, typeToConvert, options) ?? (thrownOnNullRead ? throw new JsonException() : default);
24!
11

12
    public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options) =>
NEW
13
        nullableConverter.Write(writer, value, options);
×
14

15
}
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