Json.NET
Code Coverage Statistics for Class

Newtonsoft.Json.Bson.BsonBinaryWriter

Symbol Coverage: 98.65% (146 of 148)

Branch Coverage: 95.12% (39 of 41)

Method Coverage: 100.00% (9 of 9)

Cyclomatic Complexity Avg: 5.56 Max:18

Methods: 9


Methods

Method Symbol Coverage Branch Coverage Method Coverage Cyclomatic Complexity
CalculateSize(Newtonsoft.Json.Bson.BsonToken t) : System.Int32  98.00% : 49 of 50
90.91% : 10 of 11
100.00% : 1 of 1
18
WriteTokenInternal(Newtonsoft.Json.Bson.BsonToken t) : void  98.46% : 64 of 65
90.00% : 9 of 10
100.00% : 1 of 1
18
.cctor() : void [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
.ctor(System.IO.Stream stream) : void  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
CalculateSize(System.Int32 stringByteCount) : System.Int32  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
CalculateSizeWithLength(System.Int32 stringByteCount,System.Boolean includeSize) : System.Int32  100.00% : 3 of 3
100.00% : 3 of 3
100.00% : 1 of 1
2
Flush() : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
WriteString(System.String s,System.Int32 byteCount,System.Nullable<System.Int32> calculatedlengthPrefix) : void  100.00% : 19 of 19
100.00% : 13 of 13
100.00% : 1 of 1
7
WriteToken(Newtonsoft.Json.Bson.BsonToken t) : void  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1