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

neon-sunset / U8String / 5912240727

19 Aug 2023 03:39PM UTC coverage: 22.685% (+0.3%) from 22.422%
5912240727

push

github

neon-sunset
feat: enumerators improvements

122 of 776 branches covered (15.72%)

Branch coverage included in aggregate %.

65 of 65 new or added lines in 4 files covered. (100.0%)

439 of 1697 relevant lines covered (25.87%)

30109.06 hits per line

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

0.0
/src/ThrowHelpers.cs
1
using System.Diagnostics;
2
using System.Diagnostics.CodeAnalysis;
3

4
namespace System;
5

6
// TODO: Author exception messages
7
internal static class ThrowHelpers
8
{
9
    [DoesNotReturn, StackTraceHidden]
10
    internal static void InvalidUtf8()
11
    {
12
        // TODO: Better exception message?
13
        throw new FormatException("The value is not a valid UTF-8 sequence.");
×
14
    }
15

16
    [DoesNotReturn, StackTraceHidden]
17
    internal static void InvalidAscii()
18
    {
19
        throw new FormatException("The value is not a valid ASCII sequence.");
×
20
    }
21

22
    [DoesNotReturn, StackTraceHidden]
23
    internal static void InvalidSplit()
24
    {
25
        throw new FormatException("The value is not a valid split sequence.");
×
26
    }
27

28
    [DoesNotReturn, StackTraceHidden]
29
    internal static void IndexOutOfRange()
30
    {
31
        throw new IndexOutOfRangeException();
×
32
    }
33

34
    [DoesNotReturn, StackTraceHidden]
35
    internal static void ArgumentOutOfRange()
36
    {
37
        throw new ArgumentOutOfRangeException();
×
38
    }
39

40
    [DoesNotReturn, StackTraceHidden]
41
    internal static void ArgumentOutOfRange(string? paramName)
42
    {
43
        throw new ArgumentOutOfRangeException(paramName);
×
44
    }
45

46
    [DoesNotReturn, StackTraceHidden]
47
    internal static T ArgumentOutOfRange<T>(string? paramName = null)
48
    {
49
        throw new ArgumentOutOfRangeException(paramName);
×
50
    }
51
}
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