• 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/UnfuckedWebTarget.Config.cs
1
using System.Diagnostics.Contracts;
2
using Unfucked.HTTP.Config;
3
using Unfucked.HTTP.Filters;
4
using Unfucked.HTTP.Serialization;
5

6
namespace Unfucked.HTTP;
7

8
public partial class WebTarget {
9

10
    /// <inheritdoc />
11
    [Pure]
12
    public IReadOnlyList<ClientRequestFilter> RequestFilters => clientConfig?.RequestFilters ?? throw ConfigUnavailable;
×
13

14
    /// <inheritdoc />
15
    [Pure]
16
    public IReadOnlyList<ClientResponseFilter> ResponseFilters => clientConfig?.ResponseFilters ?? throw ConfigUnavailable;
×
17

18
    /// <inheritdoc />
19
    [Pure]
20
    public IEnumerable<MessageBodyReader> MessageBodyReaders => clientConfig?.MessageBodyReaders ?? throw ConfigUnavailable;
×
21

22
    /// <inheritdoc />
23
    [Pure]
24
    public WebTarget Register(Registrable registrable) =>
25
        clientConfig is not null ? new WebTarget(client, urlBuilder, clientHandler, clientConfig.Register(registrable)) : throw ConfigUnavailable;
×
26

27
    /// <inheritdoc />
28
    [Pure]
29
    public WebTarget Register<Option>(Registrable<Option> registrable, Option registrationOption) =>
30
        clientConfig is not null ? new WebTarget(client, urlBuilder, clientHandler, clientConfig.Register(registrable, registrationOption)) : throw ConfigUnavailable;
×
31

32
    /// <inheritdoc />
33
    [Pure]
34
    IWebTarget Configurable<IWebTarget>.Register(Registrable registrable) => Register(registrable);
×
35

36
    /// <inheritdoc />
37
    [Pure]
38
    IWebTarget Configurable<IWebTarget>.Register<Option>(Registrable<Option> registrable, Option registrationOption) => Register(registrable, registrationOption);
×
39

40
    /// <inheritdoc />
41
    [Pure]
42
    public WebTarget Property<T>(PropertyKey<T> key, T? newValue) where T: notnull =>
43
        clientConfig is not null ? new WebTarget(client, urlBuilder, clientHandler, clientConfig.Property(key, newValue)) : throw ConfigUnavailable;
×
44

45
    /// <inheritdoc />
46
    public bool Property<T>(PropertyKey<T> key,
47
#if !NETSTANDARD2_0
48
                            [NotNullWhen(true)]
49
#endif
50
                            out T? existingValue) where T: notnull {
UNCOV
51
        if (clientConfig is not null) {
×
UNCOV
52
            return clientConfig.Property(key, out existingValue);
×
53
        } else {
54
            existingValue = default;
×
55
            return false;
×
56
        }
57
    }
58

59
    /// <inheritdoc />
60
    [Pure]
61
    IWebTarget Configurable<IWebTarget>.Property<T>(PropertyKey<T> key, T? newValue) where T: default => Property(key, newValue);
×
62

63
    internal static InvalidOperationException ConfigUnavailable => new(
×
64
        $"Configuration is not available on this {nameof(WebTarget)} because the underlying {nameof(HttpClient)} was constructed with a default {nameof(HttpMessageHandler)}, or an {nameof(HttpMessageHandler)} that is neither an {nameof(UnfuckedHttpHandler)} nor a {nameof(DelegatingHandler)} that delegates to an inner {nameof(UnfuckedHttpHandler)}. Try instantiating the client by calling `new {nameof(UnfuckedHttpClient)}()` instead.");
×
65

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