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

Aldaviva / Unfucked / 19128584806

06 Nov 2025 07:47AM UTC coverage: 0.396% (-39.5%) from 39.923%
19128584806

push

github

Aldaviva
DateTime: added IsBefore and IsAfter for ZonedDateTime, not just OffsetDateTime. DI: Allow super registration for keyed services; fixed super registration of a hosted service causing an infinite recursion during injection. STUN: updated fallback server list, most of which have gone offline (including Google, confusingly); made HttpClient optional.

2 of 1605 branches covered (0.12%)

0 of 55 new or added lines in 2 files covered. (0.0%)

945 existing lines in 35 files now uncovered.

9 of 2272 relevant lines covered (0.4%)

0.04 hits per line

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

0.0
/HTTP/Serialization/ByteArrayBodyReader.cs
1
using System.Text;
2
using Unfucked.HTTP.Config;
3

4
namespace Unfucked.HTTP.Serialization;
5

6
public class ByteArrayBodyReader: MessageBodyReader {
7

UNCOV
8
    public bool CanRead<T>(string? mimeType, string? bodyPrefix) => typeof(T) == typeof(byte[]);
×
9

10
    public async Task<T> Read<T>(HttpContent responseBody, Encoding? responseEncoding, Configurable? clientConfig, CancellationToken cancellationToken) =>
11
        (T) (object) await ReadByteArray(responseBody, cancellationToken).ConfigureAwait(false);
×
12

13
    private static Task<byte[]> ReadByteArray(HttpContent responseBody, CancellationToken cancellationToken) =>
14
#if NET6_0_OR_GREATER
15
        responseBody.ReadAsByteArrayAsync(cancellationToken);
16
#else
17
        responseBody.ReadAsByteArrayAsync();
18
#endif
19

20
    public class MemoryBodyReader: MessageBodyReader {
21

UNCOV
22
        public bool CanRead<T>(string? mimeType, string? bodyPrefix) => typeof(T) == typeof(Memory<byte>);
×
23

24
        public async Task<T> Read<T>(HttpContent responseBody, Encoding? responseEncoding, Configurable? clientConfig, CancellationToken cancellationToken) =>
25
            (T) (object) (await ReadByteArray(responseBody, cancellationToken).ConfigureAwait(false)).AsMemory();
×
26

27
    }
28

29
    public class ReadOnlyMemoryBodyReader: MessageBodyReader {
30

UNCOV
31
        public bool CanRead<T>(string? mimeType, string? bodyPrefix) => typeof(T) == typeof(ReadOnlyMemory<byte>);
×
32

33
        public async Task<T> Read<T>(HttpContent responseBody, Encoding? responseEncoding, Configurable? clientConfig, CancellationToken cancellationToken) =>
34
            (T) (object) new ReadOnlyMemory<byte>(await ReadByteArray(responseBody, cancellationToken).ConfigureAwait(false));
×
35

36
    }
37

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