Json.NET
Code Coverage Statistics for Class

Newtonsoft.Json.JsonValidatingReader

Symbol Coverage: 89.16% (222 of 249)

Branch Coverage: 93.09% (175 of 188)

Method Coverage: 92.68% (38 of 41)

Cyclomatic Complexity Avg: 3.85 Max:19

Methods: 41


Methods

Method Symbol Coverage Branch Coverage Method Coverage Cyclomatic Complexity
ReadAsBytes() : System.Byte[]  0.00% : 0 of 4
0.00% : 0 of 1
0.00% : 0 of 1
1
set_QuoteChar(System.Char value) : void  0.00% : 0 of 1
0.00% : 0 of 1
0.00% : 0 of 1
1
ValidateBoolean(Newtonsoft.Json.Schema.JsonSchemaModel schema) : void  66.67% : 4 of 6
100.00% : 3 of 3
100.00% : 1 of 1
3
GetCurrentNodeSchemaType() : System.Nullable<Newtonsoft.Json.Schema.JsonSchemaType>  70.00% : 7 of 10
100.00% : 2 of 2
100.00% : 1 of 1
8
get_CurrentMemberSchema() : Newtonsoft.Json.Schema.JsonSchemaModel  80.00% : 16 of 20
88.89% : 16 of 18
100.00% : 1 of 1
14
set_Schema(Newtonsoft.Json.Schema.JsonSchema value) : void  80.00% : 4 of 5
66.67% : 2 of 3
100.00% : 1 of 1
2
ValidateNull(Newtonsoft.Json.Schema.JsonSchemaModel schema) : void  83.33% : 5 of 6
100.00% : 3 of 3
100.00% : 1 of 1
3
ValidateCurrentToken() : void  84.09% : 37 of 44
87.50% : 7 of 8
100.00% : 1 of 1
19
Read() : System.Boolean  85.71% : 6 of 7
100.00% : 3 of 3
100.00% : 1 of 1
3
ValidateInEnumAndNotDisallowed(Newtonsoft.Json.Schema.JsonSchemaModel schema) : void  90.91% : 10 of 11
100.00% : 9 of 9
100.00% : 1 of 1
6
ValidateInteger(Newtonsoft.Json.Schema.JsonSchemaModel schema) : void  90.91% : 10 of 11
85.71% : 12 of 14
100.00% : 1 of 1
9
ValidateFloat(Newtonsoft.Json.Schema.JsonSchemaModel schema) : void  92.31% : 12 of 13
90.00% : 18 of 20
100.00% : 1 of 1
12
<ValidateEndObject>b__0(System.Collections.Generic.KeyValuePair<System.String,System.Boolean> kv) : System.Boolean [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
<ValidateEndObject>b__1(System.Collections.Generic.KeyValuePair<System.String,System.Boolean> kv) : System.String [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
<ValidatePropertyName>b__4(System.Collections.Generic.KeyValuePair<System.String,Newtonsoft.Json.Schema.JsonSchemaModel> p) : System.String [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
get_CurrentSchema() : Newtonsoft.Json.Schema.JsonSchemaModel  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
get_Depth() : System.Int32  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
get_QuoteChar() : System.Char  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
get_Reader() : Newtonsoft.Json.JsonReader  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
get_Schema() : Newtonsoft.Json.Schema.JsonSchema  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
get_TokenType() : Newtonsoft.Json.JsonToken  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
get_Value() : System.Object  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
get_ValueType() : System.Type  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
Newtonsoft.Json.IJsonLineInfo.get_LineNumber() : System.Int32  100.00% : 3 of 3
100.00% : 3 of 3
100.00% : 1 of 1
2
Newtonsoft.Json.IJsonLineInfo.get_LinePosition() : System.Int32  100.00% : 3 of 3
100.00% : 3 of 3
100.00% : 1 of 1
2
Newtonsoft.Json.IJsonLineInfo.HasLineInfo() : System.Boolean  100.00% : 3 of 3
100.00% : 3 of 3
100.00% : 1 of 1
2
.ctor(Newtonsoft.Json.JsonReader reader) : void  100.00% : 5 of 5
100.00% : 1 of 1
100.00% : 1 of 1
1
OnValidationEvent(Newtonsoft.Json.Schema.JsonSchemaException exception) : void  100.00% : 5 of 5
100.00% : 2 of 2
100.00% : 1 of 1
2
Pop() : Newtonsoft.Json.JsonValidatingReader+SchemaScope  100.00% : 4 of 4
100.00% : 3 of 3
100.00% : 1 of 1
2
ProcessValue() : void  100.00% : 5 of 5
100.00% : 10 of 10
100.00% : 1 of 1
7
Push(Newtonsoft.Json.JsonValidatingReader+SchemaScope scope) : void  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
RaiseError(System.String message,Newtonsoft.Json.Schema.JsonSchemaModel schema) : void  100.00% : 4 of 4
100.00% : 3 of 3
100.00% : 1 of 1
2
TestType(Newtonsoft.Json.Schema.JsonSchemaModel currentSchema,Newtonsoft.Json.Schema.JsonSchemaType currentType) : System.Boolean  100.00% : 5 of 5
100.00% : 2 of 2
100.00% : 1 of 1
2
ValidateArray(Newtonsoft.Json.Schema.JsonSchemaModel schema) : System.Boolean  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
ValidateEndArray(Newtonsoft.Json.Schema.JsonSchemaModel schema) : void  100.00% : 8 of 8
100.00% : 13 of 13
100.00% : 1 of 1
8
ValidateEndObject(Newtonsoft.Json.Schema.JsonSchemaModel schema) : void  100.00% : 8 of 8
100.00% : 7 of 7
100.00% : 1 of 1
6
ValidateObject(Newtonsoft.Json.Schema.JsonSchemaModel schema) : System.Boolean  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
ValidatePropertyName(Newtonsoft.Json.Schema.JsonSchemaModel schema) : void  100.00% : 11 of 11
100.00% : 13 of 13
100.00% : 1 of 1
8
ValidateString(Newtonsoft.Json.Schema.JsonSchemaModel schema) : void  100.00% : 17 of 17
100.00% : 21 of 21
100.00% : 1 of 1
13
add_ValidationEventHandler(Newtonsoft.Json.Schema.ValidationEventHandler value) : void  N/A : 0 of 0
100.00% : 3 of 3
100.00% : 1 of 1
2
remove_ValidationEventHandler(Newtonsoft.Json.Schema.ValidationEventHandler value) : void  N/A : 0 of 0
0.00% : 0 of 3
0.00% : 0 of 1
2