Json.NET
Code Coverage Statistics for Class

Newtonsoft.Json.Bson.BsonReader

Symbol Coverage: 93.77% (286 of 305)

Branch Coverage: 88.60% (101 of 114)

Method Coverage: 100.00% (30 of 30)

Cyclomatic Complexity Avg: 3.63 Max:18

Methods: 30


Methods

Method Symbol Coverage Branch Coverage Method Coverage Cyclomatic Complexity
ReadNormal() : System.Boolean  76.92% : 30 of 39
83.33% : 15 of 18
100.00% : 1 of 1
18
BytesInSequence(System.Byte b) : System.Int32  80.00% : 8 of 10
100.00% : 11 of 11
100.00% : 1 of 1
8
ReadAsBytes() : System.Byte[]  80.00% : 4 of 5
66.67% : 2 of 3
100.00% : 1 of 1
2
ReadReference() : System.Boolean  86.36% : 19 of 22
70.00% : 7 of 10
100.00% : 1 of 1
7
Read() : System.Boolean  87.50% : 7 of 8
66.67% : 2 of 3
100.00% : 1 of 1
3
ReadCodeWScope() : System.Boolean  96.15% : 25 of 26
75.00% : 6 of 8
100.00% : 1 of 1
8
GetString(System.Int32 length) : System.String  96.30% : 26 of 27
93.33% : 14 of 15
100.00% : 1 of 1
9
ReadType(Newtonsoft.Json.Bson.BsonType type) : void  98.25% : 56 of 57
66.67% : 2 of 3
100.00% : 1 of 1
18
.cctor() : void [static]  100.00% : 4 of 4
N/A : 0 of 0
100.00% : 1 of 1
1
.ctor(System.IO.Stream stream) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
.ctor(System.IO.Stream stream,System.Boolean readRootValueAsArray,System.DateTimeKind dateTimeKindHandling) : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
EnsureBuffers() : void  100.00% : 6 of 6
100.00% : 4 of 4
100.00% : 1 of 1
3
get_DateTimeKindHandling() : System.DateTimeKind  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
get_ReadRootValueAsArray() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
GetLastFullCharStop(System.Int32 start) : System.Int32  100.00% : 15 of 15
83.33% : 5 of 6
100.00% : 1 of 1
5
MovePosition(System.Int32 count) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
PopContext() : void  100.00% : 5 of 5
100.00% : 2 of 2
100.00% : 1 of 1
2
PushContext(Newtonsoft.Json.Bson.BsonReader+ContainerContext newContext) : void  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
ReadBinary() : System.Byte[]  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
ReadByte() : System.Byte  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
ReadBytes(System.Int32 count) : System.Byte[]  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
ReadDouble() : System.Double  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
ReadElement() : System.String  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
ReadInt32() : System.Int32  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
ReadInt64() : System.Int64  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
ReadLengthString() : System.String  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
ReadString() : System.String  100.00% : 27 of 27
100.00% : 14 of 14
100.00% : 1 of 1
8
ReadType() : Newtonsoft.Json.Bson.BsonType  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
set_DateTimeKindHandling(System.DateTimeKind value) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
set_ReadRootValueAsArray(System.Boolean value) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1