Json.NET
Code Coverage Statistics for Class

Newtonsoft.Json.Utilities.ConvertUtils

Symbol Coverage: 49.64% (68 of 137)

Branch Coverage: 49.57% (57 of 115)

Method Coverage: 40.00% (8 of 20)

Cyclomatic Complexity Avg: 4.30 Max:27

Methods: 20


Methods

Method Symbol Coverage Branch Coverage Method Coverage Cyclomatic Complexity
CanConvertType(System.Type initialType,System.Type targetType,System.Boolean allowTypeNameToString) : System.Boolean [static]  0.00% : 0 of 26
0.00% : 0 of 32
0.00% : 0 of 1
22
Convert<T>(System.Object initialValue) : T [static]  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
Convert<T>(System.Object initialValue,System.Globalization.CultureInfo culture) : T [static]  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
ConvertOrCast<T>(System.Object initialValue) : T [static]  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
ConvertOrCast<T>(System.Object initialValue,System.Globalization.CultureInfo culture) : T [static]  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
IsComponentConverter(System.ComponentModel.TypeConverter converter) : System.Boolean [static]  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
ToValue(System.Data.SqlTypes.INullable nullableValue) : System.Object [static]  0.00% : 0 of 14
0.00% : 0 of 8
0.00% : 0 of 1
7
TryConvert<T>(System.Object initialValue,byref T convertedValue) : System.Boolean [static]  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
TryConvert<T>(System.Object initialValue,System.Globalization.CultureInfo culture,byref T convertedValue) : System.Boolean [static]  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
TryConvertOrCast(System.Object initialValue,System.Globalization.CultureInfo culture,System.Type targetType,byref System.Object convertedValue) : System.Boolean [static]  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
TryConvertOrCast<T>(System.Object initialValue,byref T convertedValue) : System.Boolean [static]  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
TryConvertOrCast<T>(System.Object initialValue,System.Globalization.CultureInfo culture,byref T convertedValue) : System.Boolean [static]  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
IsInteger(System.Object value) : System.Boolean [static]  75.00% : 3 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
EnsureTypeAssignable(System.Object value,System.Type initialType,System.Type targetType) : System.Object [static]  81.82% : 9 of 11
100.00% : 11 of 11
100.00% : 1 of 1
7
Convert(System.Object initialValue,System.Globalization.CultureInfo culture,System.Type targetType) : System.Object [static]  85.37% : 35 of 41
80.00% : 32 of 40
100.00% : 1 of 1
27
ConvertOrCast(System.Object initialValue,System.Globalization.CultureInfo culture,System.Type targetType) : System.Object [static]  100.00% : 8 of 8
100.00% : 6 of 6
100.00% : 1 of 1
5
.cctor() : void [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
CreateCastConverter(Newtonsoft.Json.Utilities.ConvertUtils+TypeConvertKey t) : System.Func<System.Object,System.Object> [static]  100.00% : 8 of 8
100.00% : 4 of 4
100.00% : 1 of 1
3
GetConverter(System.Type t) : System.ComponentModel.TypeConverter [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
TryConvert(System.Object initialValue,System.Globalization.CultureInfo culture,System.Type targetType,byref System.Object convertedValue) : System.Boolean [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1