Json.NET
Code Coverage Statistics for Class

Newtonsoft.Json.Utilities.ReflectionUtils

Symbol Coverage: 76.86% (269 of 350)

Branch Coverage: 75.68% (140 of 185)

Method Coverage: 85.45% (47 of 55)

Cyclomatic Complexity Avg: 2.78 Max:9

Methods: 55


Methods

Method Symbol Coverage Branch Coverage Method Coverage Cyclomatic Complexity
CreateUnitializedValue(System.Type type) : System.Object [static]  0.00% : 0 of 9
0.00% : 0 of 9
0.00% : 0 of 1
6
GetFieldsAndProperties<T>(System.Reflection.BindingFlags bindingAttr) : System.Collections.Generic.List<System.Reflection.MemberInfo> [static]  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
GetNameAndAssessmblyName(System.Type t) : System.String [static]  0.00% : 0 of 3
0.00% : 0 of 1
0.00% : 0 of 1
1
IsCompatibleValue(System.Object value,System.Type type) : System.Boolean [static]  0.00% : 0 of 6
0.00% : 0 of 3
0.00% : 0 of 1
3
IsPropertyIndexed(System.Reflection.PropertyInfo property) : System.Boolean [static]  0.00% : 0 of 3
0.00% : 0 of 1
0.00% : 0 of 1
1
IsUnitializedValue(System.Object value) : System.Boolean [static]  0.00% : 0 of 5
0.00% : 0 of 2
0.00% : 0 of 1
2
ItemsUnitializedValue<T>(System.Collections.Generic.IList<T> list) : System.Boolean [static]  0.00% : 0 of 19
0.00% : 0 of 10
0.00% : 0 of 1
7
SetMemberValue(System.Reflection.MemberInfo member,System.Object target,System.Object value) : void [static]  0.00% : 0 of 9
0.00% : 0 of 3
0.00% : 0 of 1
3
GetMemberValue(System.Reflection.MemberInfo member,System.Object target) : System.Object [static]  66.67% : 6 of 9
60.00% : 3 of 5
100.00% : 1 of 1
3
IsOverridenGenericMember(System.Reflection.MemberInfo memberInfo,System.Reflection.BindingFlags bindingAttr) : System.Boolean [static]  68.75% : 11 of 16
77.78% : 7 of 9
100.00% : 1 of 1
7
GetMemberUnderlyingType(System.Reflection.MemberInfo member) : System.Type [static]  71.43% : 5 of 7
75.00% : 3 of 4
100.00% : 1 of 1
4
IsInstantiatableType(System.Type t) : System.Boolean [static]  71.43% : 5 of 7
87.50% : 7 of 8
100.00% : 1 of 1
7
GetTypeName(System.Type t,System.Runtime.Serialization.Formatters.FormatterAssemblyStyle assemblyFormat) : System.String [static]  80.00% : 4 of 5
66.67% : 2 of 3
100.00% : 1 of 1
2
GetCollectionItemType(System.Type type) : System.Type [static]  81.82% : 9 of 11
71.43% : 5 of 7
100.00% : 1 of 1
5
InheritsGenericDefinition(System.Type type,System.Type genericClassDefinition,byref System.Type implementingType) : System.Boolean [static]  83.33% : 5 of 6
60.00% : 3 of 5
100.00% : 1 of 1
3
GetDictionaryKeyValueTypes(System.Type dictionaryType,byref System.Type keyType,byref System.Type valueType) : void [static]  85.71% : 12 of 14
60.00% : 3 of 5
100.00% : 1 of 1
4
AssignableToTypeName(System.Type type,System.String fullTypeName,byref System.Type match) : System.Boolean [static]  86.67% : 13 of 15
100.00% : 7 of 7
100.00% : 1 of 1
5
CanReadMemberValue(System.Reflection.MemberInfo member,System.Boolean nonPublic) : System.Boolean [static]  86.67% : 13 of 15
100.00% : 7 of 7
100.00% : 1 of 1
7
CanSetMemberValue(System.Reflection.MemberInfo member,System.Boolean nonPublic) : System.Boolean [static]  88.24% : 15 of 17
100.00% : 8 of 8
100.00% : 1 of 1
8
ImplementsGenericDefinition(System.Type type,System.Type genericInterfaceDefinition,byref System.Type implementingType) : System.Boolean [static]  95.24% : 20 of 21
86.67% : 13 of 15
100.00% : 1 of 1
9
<CreateGeneric>b__8(System.Type t,System.Collections.Generic.IList<System.Object> a) : System.Object [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
<GetChildPrivateFields>b__a(System.Reflection.FieldInfo f) : System.Boolean [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
<GetFieldsAndProperties>b__0(System.Reflection.MemberInfo m) : System.String [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
<GetFieldsAndProperties>b__1(System.Linq.IGrouping<System.String,System.Reflection.MemberInfo> g) : <>f__AnonymousType0<System.Int32,System.Collections.Generic.IEnumerable<System.Reflection.MemberInfo>> [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
AssignableToTypeName(System.Type type,System.String fullTypeName) : System.Boolean [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
CreateGeneric(System.Type genericTypeDefinition,System.Collections.Generic.IList<System.Type> innerTypes,System.Func<System.Type,System.Collections.Generic.IList<System.Object>,System.Object> instanceCreator,System.Object[] args) : System.Object [static]  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
CreateGeneric(System.Type genericTypeDefinition,System.Collections.Generic.IList<System.Type> innerTypes,System.Object[] args) : System.Object [static]  100.00% : 2 of 2
100.00% : 2 of 2
100.00% : 1 of 1
2
CreateGeneric(System.Type genericTypeDefinition,System.Type innerType,System.Object[] args) : System.Object [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
CreateInstance(System.Type type,System.Object[] args) : System.Object [static]  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
GetAssemblyDelimiterIndex(System.String fullyQualifiedTypeName) : System.Nullable<System.Int32> [static]  100.00% : 15 of 15
100.00% : 6 of 6
100.00% : 1 of 1
6
GetAttribute<T>(System.Reflection.ICustomAttributeProvider attributeProvider) : T [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
GetAttribute<T>(System.Reflection.ICustomAttributeProvider attributeProvider,System.Boolean inherit) : T [static]  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
GetAttributes<T>(System.Reflection.ICustomAttributeProvider attributeProvider,System.Boolean inherit) : T[] [static]  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
GetChildPrivateFields(System.Collections.Generic.IList<System.Reflection.MemberInfo> initialFields,System.Type targetType,System.Reflection.BindingFlags bindingAttr) : void [static]  100.00% : 6 of 6
100.00% : 5 of 5
100.00% : 1 of 1
4
GetChildPrivateProperties(System.Collections.Generic.IList<System.Reflection.MemberInfo> initialProperties,System.Type targetType,System.Reflection.BindingFlags bindingAttr) : void [static]  100.00% : 12 of 12
100.00% : 8 of 8
100.00% : 1 of 1
5
GetDefaultConstructor(System.Type t) : System.Reflection.ConstructorInfo [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
GetDefaultConstructor(System.Type t,System.Boolean nonPublic) : System.Reflection.ConstructorInfo [static]  100.00% : 5 of 5
100.00% : 3 of 3
100.00% : 1 of 1
2
GetDictionaryKeyType(System.Type dictionaryType) : System.Type [static]  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
GetDictionaryValueType(System.Type dictionaryType) : System.Type [static]  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
GetFields(System.Type targetType,System.Reflection.BindingFlags bindingAttr) : System.Collections.Generic.IEnumerable<System.Reflection.FieldInfo> [static]  100.00% : 5 of 5
100.00% : 1 of 1
100.00% : 1 of 1
1
GetFieldsAndProperties(System.Type type,System.Reflection.BindingFlags bindingAttr) : System.Collections.Generic.List<System.Reflection.MemberInfo> [static]  100.00% : 14 of 14
100.00% : 9 of 9
100.00% : 1 of 1
7
GetObjectType(System.Object v) : System.Type [static]  100.00% : 2 of 2
100.00% : 3 of 3
100.00% : 1 of 1
2
GetProperties(System.Type targetType,System.Reflection.BindingFlags bindingAttr) : System.Collections.Generic.IEnumerable<System.Reflection.PropertyInfo> [static]  100.00% : 5 of 5
100.00% : 1 of 1
100.00% : 1 of 1
1
HasDefaultConstructor(System.Type t) : System.Boolean [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
HasDefaultConstructor(System.Type t,System.Boolean nonPublic) : System.Boolean [static]  100.00% : 5 of 5
100.00% : 2 of 2
100.00% : 1 of 1
2
ImplementsGenericDefinition(System.Type type,System.Type genericInterfaceDefinition) : System.Boolean [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
InheritsGenericDefinition(System.Type type,System.Type genericClassDefinition) : System.Boolean [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
InheritsGenericDefinitionInternal(System.Type currentType,System.Type genericClassDefinition,byref System.Type implementingType) : System.Boolean [static]  100.00% : 10 of 10
100.00% : 5 of 5
100.00% : 1 of 1
4
IsIndexedProperty(System.Reflection.MemberInfo member) : System.Boolean [static]  100.00% : 6 of 6
100.00% : 2 of 2
100.00% : 1 of 1
2
IsIndexedProperty(System.Reflection.PropertyInfo property) : System.Boolean [static]  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
IsNullable(System.Type t) : System.Boolean [static]  100.00% : 5 of 5
100.00% : 2 of 2
100.00% : 1 of 1
2
IsNullableType(System.Type t) : System.Boolean [static]  100.00% : 3 of 3
100.00% : 3 of 3
100.00% : 1 of 1
2
MakeGenericType(System.Type genericTypeDefinition,System.Type[] innerTypes) : System.Type [static]  100.00% : 5 of 5
100.00% : 1 of 1
100.00% : 1 of 1
1
RemoveFlag(System.Reflection.BindingFlags bindingAttr,System.Reflection.BindingFlags flag) : System.Reflection.BindingFlags [static]  100.00% : 2 of 2
100.00% : 3 of 3
100.00% : 1 of 1
2
SplitFullyQualifiedTypeName(System.String fullyQualifiedTypeName,byref System.String typeName,byref System.String assemblyName) : void [static]  100.00% : 7 of 7
100.00% : 2 of 2
100.00% : 1 of 1
2