Json.NET
Code Coverage Statistics for Class

Newtonsoft.Json.Schema.JsonSchemaGenerator

Symbol Coverage: 96.36% (159 of 165)

Branch Coverage: 94.17% (113 of 120)

Method Coverage: 95.24% (20 of 21)

Cyclomatic Complexity Avg: 4.33 Max:35

Methods: 21


Methods

Method Symbol Coverage Branch Coverage Method Coverage Cyclomatic Complexity
Generate(System.Type type,Newtonsoft.Json.Schema.JsonSchemaResolver resolver) : Newtonsoft.Json.Schema.JsonSchema  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
HasFlag(System.Nullable<Newtonsoft.Json.Schema.JsonSchemaType> value,Newtonsoft.Json.Schema.JsonSchemaType flag) : System.Boolean [static]  75.00% : 3 of 4
100.00% : 6 of 6
100.00% : 1 of 1
4
GetJsonSchemaType(System.Type type,Newtonsoft.Json.Required valueRequired) : Newtonsoft.Json.Schema.JsonSchemaType  94.12% : 16 of 17
88.89% : 8 of 9
100.00% : 1 of 1
12
GenerateInternal(System.Type type,Newtonsoft.Json.Required valueRequired,System.Boolean optional) : Newtonsoft.Json.Schema.JsonSchema  97.14% : 68 of 70
91.23% : 52 of 57
100.00% : 1 of 1
35
AddNullType(Newtonsoft.Json.Schema.JsonSchemaType type,Newtonsoft.Json.Required valueRequired) : Newtonsoft.Json.Schema.JsonSchemaType  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
Generate(System.Type type) : Newtonsoft.Json.Schema.JsonSchema  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
Generate(System.Type type,Newtonsoft.Json.Schema.JsonSchemaResolver resolver,System.Boolean rootSchemaNullable) : Newtonsoft.Json.Schema.JsonSchema  100.00% : 5 of 5
100.00% : 3 of 3
100.00% : 1 of 1
2
Generate(System.Type type,System.Boolean rootSchemaNullable) : Newtonsoft.Json.Schema.JsonSchema  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
GenerateISerializableContract(System.Type type,Newtonsoft.Json.Serialization.JsonISerializableContract contract) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
GenerateObjectSchema(System.Type type,Newtonsoft.Json.Serialization.JsonObjectContract contract) : void  100.00% : 13 of 13
100.00% : 14 of 14
100.00% : 1 of 1
10
get_ContractResolver() : Newtonsoft.Json.Serialization.IContractResolver  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
get_CurrentSchema() : Newtonsoft.Json.Schema.JsonSchema  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
GetDescription(System.Type type) : System.String  100.00% : 8 of 8
100.00% : 5 of 5
100.00% : 1 of 1
4
GetTitle(System.Type type) : System.String  100.00% : 5 of 5
100.00% : 4 of 4
100.00% : 1 of 1
3
GetTypeId(System.Type type,System.Boolean explicitOnly) : System.String  100.00% : 10 of 10
100.00% : 6 of 6
100.00% : 1 of 1
5
.ctor() : void  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
Pop() : Newtonsoft.Json.Schema.JsonSchemaGenerator+TypeSchema  100.00% : 8 of 8
100.00% : 3 of 3
100.00% : 1 of 1
2
Push(Newtonsoft.Json.Schema.JsonSchemaGenerator+TypeSchema typeSchema) : void  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
set_ContractResolver(Newtonsoft.Json.Serialization.IContractResolver value) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
get_UndefinedSchemaIdHandling() : Newtonsoft.Json.Schema.UndefinedSchemaIdHandling  N/A : 0 of 0
100.00% : 1 of 1
100.00% : 1 of 1
1
set_UndefinedSchemaIdHandling(Newtonsoft.Json.Schema.UndefinedSchemaIdHandling value) : void  N/A : 0 of 0
100.00% : 1 of 1
100.00% : 1 of 1
1