Json.NET
Code Coverage Statistics for Class

Newtonsoft.Json.JsonTextReader

Symbol Coverage: 90.29% (344 of 381)

Branch Coverage: 92.62% (251 of 271)

Method Coverage: 100.00% (34 of 34)

Cyclomatic Complexity Avg: 6.21 Max:31

Methods: 34


Methods

Method Symbol Coverage Branch Coverage Method Coverage Cyclomatic Complexity
IsSeperator(System.Char c) : System.Boolean  75.00% : 9 of 12
87.50% : 14 of 16
100.00% : 1 of 1
14
ParseFalse() : void  75.00% : 3 of 4
50.00% : 1 of 2
100.00% : 1 of 1
2
ParseNull() : void  75.00% : 3 of 4
50.00% : 1 of 2
100.00% : 1 of 1
2
ParseNumberNaN() : void  75.00% : 3 of 4
50.00% : 1 of 2
100.00% : 1 of 1
2
ParseNumberNegativeInfinity() : void  75.00% : 3 of 4
50.00% : 1 of 2
100.00% : 1 of 1
2
ParseNumberPositiveInfinity() : void  75.00% : 3 of 4
50.00% : 1 of 2
100.00% : 1 of 1
2
ParseTrue() : void  75.00% : 3 of 4
50.00% : 1 of 2
100.00% : 1 of 1
2
ParseUndefined() : void  75.00% : 3 of 4
50.00% : 1 of 2
100.00% : 1 of 1
2
Read() : System.Boolean  77.78% : 14 of 18
91.67% : 11 of 12
100.00% : 1 of 1
11
ParseValue(System.Char currentChar) : System.Boolean  78.00% : 39 of 50
87.10% : 27 of 31
100.00% : 1 of 1
31
ParseObject(System.Char currentChar) : System.Boolean  83.33% : 10 of 12
100.00% : 11 of 11
100.00% : 1 of 1
9
MatchValue(System.Char firstChar,System.String value) : System.Boolean  87.50% : 7 of 8
100.00% : 8 of 8
100.00% : 1 of 1
5
MatchValue(System.Char firstChar,System.String value,System.Boolean noTrailingNonSeperatorCharacters) : System.Boolean  87.50% : 7 of 8
85.71% : 6 of 7
100.00% : 1 of 1
5
ParseUnquotedProperty(System.Char firstChar) : System.Char  88.89% : 8 of 9
90.91% : 10 of 11
100.00% : 1 of 1
6
ParseDate(System.String text) : void  89.47% : 17 of 19
100.00% : 6 of 6
100.00% : 1 of 1
5
ParseConstructor() : void  92.31% : 12 of 13
87.50% : 7 of 8
100.00% : 1 of 1
5
ParseComment() : void  92.86% : 13 of 14
86.67% : 13 of 15
100.00% : 1 of 1
8
ReadAsBytes() : System.Byte[]  92.86% : 26 of 28
96.00% : 24 of 25
100.00% : 1 of 1
17
ParsePostValue(System.Char currentChar) : System.Boolean  94.44% : 17 of 18
100.00% : 16 of 16
100.00% : 1 of 1
13
Close() : void  100.00% : 6 of 6
100.00% : 4 of 4
100.00% : 1 of 1
3
CreateJsonReaderException(System.String format,System.Object[] args) : Newtonsoft.Json.JsonReaderException  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
EatWhitespace(System.Char initialChar,System.Boolean oneOrMore,byref System.Char finalChar) : System.Boolean  100.00% : 8 of 8
100.00% : 7 of 7
100.00% : 1 of 1
4
get_LineNumber() : System.Int32  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
get_LinePosition() : System.Int32  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
HasLineInfo() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
HasNext() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
.ctor(System.IO.TextReader reader) : void  100.00% : 7 of 7
100.00% : 3 of 3
100.00% : 1 of 1
2
MoveNext() : System.Char  100.00% : 16 of 16
100.00% : 6 of 6
100.00% : 1 of 1
5
ParseNumber(System.Char firstChar) : void  100.00% : 20 of 20
100.00% : 15 of 15
100.00% : 1 of 1
9
ParseProperty(System.Char firstChar) : System.Boolean  100.00% : 19 of 19
100.00% : 10 of 10
100.00% : 1 of 1
6
ParseString(System.Char quote) : void  100.00% : 8 of 8
100.00% : 4 of 4
100.00% : 1 of 1
3
PeekNext() : System.Int32  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ReadStringIntoBuffer(System.Char quote) : void  100.00% : 43 of 43
100.00% : 31 of 31
100.00% : 1 of 1
26
ValidIdentifierChar(System.Char value) : System.Boolean  100.00% : 2 of 2
100.00% : 4 of 4
100.00% : 1 of 1
3