Json.NET
Code Coverage Statistics for Class

Newtonsoft.Json.Utilities.StringUtils

Symbol Coverage: 24.46% (34 of 139)

Branch Coverage: 23.08% (18 of 78)

Method Coverage: 35.00% (7 of 20)

Cyclomatic Complexity Avg: 2.75 Max:6

Methods: 20


Methods

Method Symbol Coverage Branch Coverage Method Coverage Cyclomatic Complexity
ActionTextReaderLine(System.IO.TextReader textReader,System.IO.TextWriter textWriter,Newtonsoft.Json.Utilities.StringUtils+ActionLine lineAction) : void [static]  0.00% : 0 of 7
0.00% : 0 of 5
0.00% : 0 of 1
3
ContainsWhiteSpace(System.String s) : System.Boolean [static]  0.00% : 0 of 9
0.00% : 0 of 6
0.00% : 0 of 1
4
EnsureEndsWith(System.String target,System.String value) : System.String [static]  0.00% : 0 of 12
0.00% : 0 of 9
0.00% : 0 of 1
6
IfNotNullOrEmpty(System.String value,System.Action<System.String> action) : void [static]  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
IfNotNullOrEmpty(System.String value,System.Action<System.String> trueAction,System.Action<System.String> falseAction) : void [static]  0.00% : 0 of 6
0.00% : 0 of 6
0.00% : 0 of 1
4
Indent(System.String s,System.Int32 indentation) : System.String [static]  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
Indent(System.String s,System.Int32 indentation,System.Char indentChar) : System.String [static]  0.00% : 0 of 9
0.00% : 0 of 5
0.00% : 0 of 1
3
IsNullOrEmptyOrWhiteSpace(System.String s) : System.Boolean [static]  0.00% : 0 of 6
0.00% : 0 of 3
0.00% : 0 of 1
3
NumberLines(System.String s) : System.String [static]  0.00% : 0 of 8
0.00% : 0 of 3
0.00% : 0 of 1
2
ReplaceNewLines(System.String s,System.String replacement) : System.String [static]  0.00% : 0 of 10
0.00% : 0 of 5
0.00% : 0 of 1
3
Truncate(System.String s,System.Int32 maximumLength) : System.String [static]  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
Truncate(System.String s,System.Int32 maximumLength,System.String suffix) : System.String [static]  0.00% : 0 of 14
0.00% : 0 of 10
0.00% : 0 of 1
6
WriteCharAsUnicode(System.IO.TextWriter writer,System.Char c) : void [static]  0.00% : 0 of 12
0.00% : 0 of 1
0.00% : 0 of 1
1
IsWhiteSpace(System.String s) : System.Boolean [static]  72.73% : 8 of 11
85.71% : 6 of 7
100.00% : 1 of 1
5
GetLength(System.String value) : System.Nullable<System.Int32> [static]  75.00% : 3 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
ForgivingCaseSensitiveFind<TSource>(System.Collections.Generic.IEnumerable<TSource> source,System.Func<TSource,System.String> valueSelector,System.String testValue) : TSource [static]  80.00% : 8 of 10
71.43% : 5 of 7
100.00% : 1 of 1
5
CreateStringWriter(System.Int32 capacity) : System.IO.StringWriter [static]  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
FormatWith(System.String format,System.IFormatProvider provider,System.Object[] args) : System.String [static]  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
NullEmptyString(System.String s) : System.String [static]  100.00% : 2 of 2
66.67% : 2 of 3
100.00% : 1 of 1
2
ToCharAsUnicode(System.Char c) : System.String [static]  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1