Json.NET
Code Coverage Statistics for Class

Newtonsoft.Json.Serialization.JsonSerializerInternalReader

Symbol Coverage: 92.98% (384 of 413)

Branch Coverage: 93.08% (269 of 289)

Method Coverage: 100.00% (41 of 41)

Cyclomatic Complexity Avg: 5.05 Max:23

Methods: 41


Methods

Method Symbol Coverage Branch Coverage Method Coverage Cyclomatic Complexity
Deserialize(Newtonsoft.Json.JsonReader reader,System.Type objectType) : System.Object  66.67% : 4 of 6
83.33% : 5 of 6
100.00% : 1 of 1
4
CreateValueInternal(Newtonsoft.Json.JsonReader reader,System.Type objectType,Newtonsoft.Json.Serialization.JsonContract contract,Newtonsoft.Json.Serialization.JsonProperty member,System.Object existingValue) : System.Object  75.00% : 15 of 20
81.82% : 9 of 11
100.00% : 1 of 1
15
ShouldSetPropertyValue(Newtonsoft.Json.Serialization.JsonProperty property,System.Object value) : System.Boolean  75.00% : 6 of 8
100.00% : 8 of 8
100.00% : 1 of 1
6
CreateISerializable(Newtonsoft.Json.JsonReader reader,Newtonsoft.Json.Serialization.JsonISerializableContract contract,System.String id) : System.Object  81.82% : 18 of 22
71.43% : 10 of 14
100.00% : 1 of 1
8
FormatValueForPrint(System.Object value) : System.String  83.33% : 5 of 6
100.00% : 3 of 3
100.00% : 1 of 1
3
EnsureArrayContract(System.Type objectType,Newtonsoft.Json.Serialization.JsonContract contract) : Newtonsoft.Json.Serialization.JsonArrayContract  85.71% : 6 of 7
80.00% : 4 of 5
100.00% : 1 of 1
3
PopulateDictionary(Newtonsoft.Json.Utilities.IWrappedDictionary dictionary,Newtonsoft.Json.JsonReader reader,Newtonsoft.Json.Serialization.JsonDictionaryContract contract,System.String id) : System.Object  85.71% : 18 of 21
81.82% : 9 of 11
100.00% : 1 of 1
6
CreateObjectFromNonDefaultConstructor(Newtonsoft.Json.JsonReader reader,Newtonsoft.Json.Serialization.JsonObjectContract contract,System.String id) : System.Object  91.11% : 41 of 45
88.57% : 31 of 35
100.00% : 1 of 1
23
PopulateObject(System.Object newObject,Newtonsoft.Json.JsonReader reader,Newtonsoft.Json.Serialization.JsonObjectContract contract,System.String id) : System.Object  92.11% : 35 of 38
89.66% : 26 of 29
100.00% : 1 of 1
17
PopulateList(Newtonsoft.Json.Utilities.IWrappedCollection wrappedList,Newtonsoft.Json.JsonReader reader,System.String reference,Newtonsoft.Json.Serialization.JsonArrayContract contract) : System.Object  94.74% : 18 of 19
88.89% : 8 of 9
100.00% : 1 of 1
6
CreateObject(Newtonsoft.Json.JsonReader reader,System.Type objectType,Newtonsoft.Json.Serialization.JsonContract contract,Newtonsoft.Json.Serialization.JsonProperty member,System.Object existingValue) : System.Object  95.00% : 57 of 60
94.74% : 36 of 38
100.00% : 1 of 1
23
<CreateObjectFromNonDefaultConstructor>b__3(Newtonsoft.Json.Serialization.JsonProperty p) : System.Boolean [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
<CreateObjectFromNonDefaultConstructor>b__4(Newtonsoft.Json.Serialization.JsonProperty kv) : Newtonsoft.Json.Serialization.JsonProperty [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
<CreateObjectFromNonDefaultConstructor>b__5(Newtonsoft.Json.Serialization.JsonProperty kv) : System.Object [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
<CreateObjectFromNonDefaultConstructor>b__6(System.Reflection.ParameterInfo p) : System.Reflection.ParameterInfo [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
<CreateObjectFromNonDefaultConstructor>b__7(System.Reflection.ParameterInfo p) : System.Object [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
<CreateObjectFromNonDefaultConstructor>b__8(System.Collections.Generic.KeyValuePair<System.Reflection.ParameterInfo,System.Object> kv) : System.String [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
<PopulateObject>b__10(Newtonsoft.Json.Serialization.JsonProperty m) : Newtonsoft.Json.Serialization.JsonProperty [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
<PopulateObject>b__11(Newtonsoft.Json.Serialization.JsonProperty m) : Newtonsoft.Json.Serialization.JsonSerializerInternalReader+RequiredValue [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
<PopulateObject>b__f(Newtonsoft.Json.Serialization.JsonProperty m) : System.Boolean [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
CheckedRead(Newtonsoft.Json.JsonReader reader) : void  100.00% : 3 of 3
100.00% : 2 of 2
100.00% : 1 of 1
2
CreateAndPopulateDictionary(Newtonsoft.Json.JsonReader reader,Newtonsoft.Json.Serialization.JsonDictionaryContract contract,System.String id) : System.Object  100.00% : 7 of 7
100.00% : 6 of 6
100.00% : 1 of 1
4
CreateAndPopulateList(Newtonsoft.Json.JsonReader reader,System.String reference,Newtonsoft.Json.Serialization.JsonArrayContract contract) : System.Object  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
CreateAndPopulateObject(Newtonsoft.Json.JsonReader reader,Newtonsoft.Json.Serialization.JsonObjectContract contract,System.String id) : System.Object  100.00% : 10 of 10
100.00% : 11 of 11
100.00% : 1 of 1
7
CreateJObject(Newtonsoft.Json.JsonReader reader) : Newtonsoft.Json.Linq.JToken  100.00% : 9 of 9
100.00% : 4 of 4
100.00% : 1 of 1
3
CreateJToken(Newtonsoft.Json.JsonReader reader,Newtonsoft.Json.Serialization.JsonContract contract) : Newtonsoft.Json.Linq.JToken  100.00% : 8 of 8
100.00% : 5 of 5
100.00% : 1 of 1
4
CreateList(Newtonsoft.Json.JsonReader reader,System.Type objectType,Newtonsoft.Json.Serialization.JsonContract contract,Newtonsoft.Json.Serialization.JsonProperty member,System.Object existingValue,System.String reference) : System.Object  100.00% : 8 of 8
100.00% : 5 of 5
100.00% : 1 of 1
3
CreateValueNonProperty(Newtonsoft.Json.JsonReader reader,System.Type objectType,Newtonsoft.Json.Serialization.JsonContract contract) : System.Object  100.00% : 5 of 5
100.00% : 4 of 4
100.00% : 1 of 1
3
CreateValueProperty(Newtonsoft.Json.JsonReader reader,Newtonsoft.Json.Serialization.JsonProperty property,System.Object target,System.Boolean gottenCurrentValue,System.Object currentValue) : System.Object  100.00% : 9 of 9
100.00% : 9 of 9
100.00% : 1 of 1
6
EnsureType(System.Object value,System.Type targetType) : System.Object  100.00% : 9 of 9
100.00% : 4 of 4
100.00% : 1 of 1
3
GetContractSafe(System.Type type) : Newtonsoft.Json.Serialization.JsonContract  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
GetContractSafe(System.Type type,System.Object value) : Newtonsoft.Json.Serialization.JsonContract  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
GetConverter(Newtonsoft.Json.Serialization.JsonContract contract,Newtonsoft.Json.JsonConverter memberConverter) : Newtonsoft.Json.JsonConverter  100.00% : 12 of 12
100.00% : 8 of 8
100.00% : 1 of 1
6
GetFormatterConverter() : Newtonsoft.Json.Serialization.JsonFormatterConverter  100.00% : 4 of 4
100.00% : 3 of 3
100.00% : 1 of 1
2
GetInternalSerializer() : Newtonsoft.Json.Serialization.JsonSerializerProxy  100.00% : 4 of 4
100.00% : 3 of 3
100.00% : 1 of 1
2
HandleError(Newtonsoft.Json.JsonReader reader,System.Int32 initialDepth) : void  100.00% : 5 of 5
100.00% : 3 of 3
100.00% : 1 of 1
2
HasDefinedType(System.Type type) : System.Boolean  100.00% : 2 of 2
100.00% : 4 of 4
100.00% : 1 of 1
3
.ctor(Newtonsoft.Json.JsonSerializer serializer) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
Populate(Newtonsoft.Json.JsonReader reader,System.Object target) : void  100.00% : 23 of 23
100.00% : 14 of 14
100.00% : 1 of 1
9
SetPropertyValue(Newtonsoft.Json.Serialization.JsonProperty property,Newtonsoft.Json.JsonReader reader,System.Object target) : void  100.00% : 19 of 19
100.00% : 24 of 24
100.00% : 1 of 1
15
SetRequiredProperty(Newtonsoft.Json.JsonReader reader,Newtonsoft.Json.Serialization.JsonProperty property,System.Collections.Generic.Dictionary<Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonSerializerInternalReader+RequiredValue> requiredProperties) : void  100.00% : 3 of 3
100.00% : 5 of 5
100.00% : 1 of 1
4