Json.NET
Code Coverage Statistics for Class

Newtonsoft.Json.Linq.JContainer

Symbol Coverage: 96.73% (384 of 397)

Branch Coverage: 94.22% (212 of 225)

Method Coverage: 97.75% (87 of 89)

Cyclomatic Complexity Avg: 2.07 Max:21

Methods: 89


Methods

Method Symbol Coverage Branch Coverage Method Coverage Cyclomatic Complexity
CheckReentrancy() : void  66.67% : 2 of 3
50.00% : 1 of 2
100.00% : 1 of 1
2
IsTokenUnchanged(Newtonsoft.Json.Linq.JToken currentValue,Newtonsoft.Json.Linq.JToken newValue) : System.Boolean [static]  85.71% : 6 of 7
100.00% : 5 of 5
100.00% : 1 of 1
4
System.ComponentModel.IBindingList.AddNew() : System.Object  90.00% : 9 of 10
80.00% : 4 of 5
100.00% : 1 of 1
3
ReadContentFrom(Newtonsoft.Json.JsonReader r) : void  90.77% : 59 of 65
93.33% : 14 of 15
100.00% : 1 of 1
21
ContentsEqual(Newtonsoft.Json.Linq.JContainer container) : System.Boolean  91.67% : 11 of 12
92.31% : 12 of 13
100.00% : 1 of 1
9
ReplaceItem(Newtonsoft.Json.Linq.JToken existing,Newtonsoft.Json.Linq.JToken replacement) : void  91.67% : 22 of 24
90.91% : 10 of 11
100.00% : 1 of 1
7
ClearItems() : void  92.31% : 12 of 13
77.78% : 7 of 9
100.00% : 1 of 1
5
Add(System.Object content) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
AddFirst(System.Object content) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
AddInternal(System.Boolean isLast,Newtonsoft.Json.Linq.JToken previous,System.Object content) : void  100.00% : 11 of 11
100.00% : 7 of 7
100.00% : 1 of 1
5
AddItem(System.Boolean isLast,Newtonsoft.Json.Linq.JToken previous,Newtonsoft.Json.Linq.JToken item) : void  100.00% : 13 of 13
100.00% : 10 of 10
100.00% : 1 of 1
6
Children() : Newtonsoft.Json.Linq.JEnumerable<Newtonsoft.Json.Linq.JToken>  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ContainsItem(Newtonsoft.Json.Linq.JToken item) : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ContentsHashCode() : System.Int32  100.00% : 7 of 7
100.00% : 4 of 4
100.00% : 1 of 1
3
CopyItemsTo(System.Array array,System.Int32 arrayIndex) : void  100.00% : 15 of 15
100.00% : 12 of 12
100.00% : 1 of 1
7
CountItems() : System.Int32  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
CreateFromContent(System.Object content) : Newtonsoft.Json.Linq.JToken  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
CreateWriter() : Newtonsoft.Json.JsonWriter  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
EnsureParentToken(Newtonsoft.Json.Linq.JToken item) : Newtonsoft.Json.Linq.JToken  100.00% : 9 of 9
100.00% : 7 of 7
100.00% : 1 of 1
4
EnsureValue(System.Object value) : Newtonsoft.Json.Linq.JToken  100.00% : 6 of 6
100.00% : 4 of 4
100.00% : 1 of 1
3
get_Content() : Newtonsoft.Json.Linq.JToken  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
get_First() : Newtonsoft.Json.Linq.JToken  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
get_HasValues() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
get_Last() : Newtonsoft.Json.Linq.JToken  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
GetItem(System.Int32 index) : Newtonsoft.Json.Linq.JToken  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.ComponentModel.IBindingList.AddIndex(System.ComponentModel.PropertyDescriptor property) : void  100.00% : 1 of 1
100.00% : 1 of 1
100.00% : 1 of 1
1
System.ComponentModel.IBindingList.ApplySort(System.ComponentModel.PropertyDescriptor property,System.ComponentModel.ListSortDirection direction) : void  100.00% : 1 of 1
100.00% : 1 of 1
100.00% : 1 of 1
1
System.ComponentModel.IBindingList.Find(System.ComponentModel.PropertyDescriptor property,System.Object key) : System.Int32  100.00% : 1 of 1
100.00% : 1 of 1
100.00% : 1 of 1
1
System.ComponentModel.IBindingList.get_AllowEdit() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.ComponentModel.IBindingList.get_AllowNew() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.ComponentModel.IBindingList.get_AllowRemove() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.ComponentModel.IBindingList.get_IsSorted() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.ComponentModel.IBindingList.get_SortDirection() : System.ComponentModel.ListSortDirection  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.ComponentModel.IBindingList.get_SortProperty() : System.ComponentModel.PropertyDescriptor  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.ComponentModel.IBindingList.get_SupportsChangeNotification() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.ComponentModel.IBindingList.get_SupportsSearching() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.ComponentModel.IBindingList.get_SupportsSorting() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.ComponentModel.IBindingList.RemoveIndex(System.ComponentModel.PropertyDescriptor property) : void  100.00% : 1 of 1
100.00% : 1 of 1
100.00% : 1 of 1
1
System.ComponentModel.IBindingList.RemoveSort() : void  100.00% : 1 of 1
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.ICollection.CopyTo(System.Array array,System.Int32 index) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.ICollection.get_Count() : System.Int32  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.ICollection.get_IsSynchronized() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.ICollection.get_SyncRoot() : System.Object  100.00% : 4 of 4
100.00% : 3 of 3
100.00% : 1 of 1
2
System.Collections.IList.Add(System.Object value) : System.Int32  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.IList.Clear() : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.IList.Contains(System.Object value) : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.IList.get_IsFixedSize() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.IList.get_IsReadOnly() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.IList.get_Item(System.Int32 index) : System.Object  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.IList.IndexOf(System.Object value) : System.Int32  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.IList.Insert(System.Int32 index,System.Object value) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.IList.Remove(System.Object value) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.IList.RemoveAt(System.Int32 index) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.IList.set_Item(System.Int32 index,System.Object value) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
IndexOfItem(Newtonsoft.Json.Linq.JToken item) : System.Int32  100.00% : 9 of 9
100.00% : 5 of 5
100.00% : 1 of 1
4
InsertItem(System.Int32 index,Newtonsoft.Json.Linq.JToken item) : void  100.00% : 5 of 5
100.00% : 2 of 2
100.00% : 1 of 1
2
IsMultiContent(System.Object content) : System.Boolean  100.00% : 2 of 2
100.00% : 5 of 5
100.00% : 1 of 1
4
System.ComponentModel.ITypedList.GetItemProperties(System.ComponentModel.PropertyDescriptor[] listAccessors) : System.ComponentModel.PropertyDescriptorCollection  100.00% : 6 of 6
100.00% : 2 of 2
100.00% : 1 of 1
2
System.ComponentModel.ITypedList.GetListName(System.ComponentModel.PropertyDescriptor[] listAccessors) : System.String  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
.ctor() : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
.ctor(Newtonsoft.Json.Linq.JContainer other) : void  100.00% : 8 of 8
100.00% : 5 of 5
100.00% : 1 of 1
3
System.Collections.Generic.ICollection<Newtonsoft.Json.Linq.JToken>.Add(Newtonsoft.Json.Linq.JToken item) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.Generic.ICollection<Newtonsoft.Json.Linq.JToken>.Clear() : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.Generic.ICollection<Newtonsoft.Json.Linq.JToken>.Contains(Newtonsoft.Json.Linq.JToken item) : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.Generic.ICollection<Newtonsoft.Json.Linq.JToken>.CopyTo(Newtonsoft.Json.Linq.JToken[] array,System.Int32 arrayIndex) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.Generic.ICollection<Newtonsoft.Json.Linq.JToken>.get_Count() : System.Int32  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.Generic.ICollection<Newtonsoft.Json.Linq.JToken>.get_IsReadOnly() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.Generic.IList<Newtonsoft.Json.Linq.JToken>.get_Item(System.Int32 index) : Newtonsoft.Json.Linq.JToken  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.Generic.IList<Newtonsoft.Json.Linq.JToken>.IndexOf(Newtonsoft.Json.Linq.JToken item) : System.Int32  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.Generic.IList<Newtonsoft.Json.Linq.JToken>.Insert(System.Int32 index,Newtonsoft.Json.Linq.JToken item) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.Generic.ICollection<Newtonsoft.Json.Linq.JToken>.Remove(Newtonsoft.Json.Linq.JToken item) : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.Generic.IList<Newtonsoft.Json.Linq.JToken>.RemoveAt(System.Int32 index) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
System.Collections.Generic.IList<Newtonsoft.Json.Linq.JToken>.set_Item(System.Int32 index,Newtonsoft.Json.Linq.JToken value) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
OnAddingNew(System.ComponentModel.AddingNewEventArgs e) : void  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
OnListChanged(System.ComponentModel.ListChangedEventArgs e) : void  100.00% : 6 of 6
100.00% : 2 of 2
100.00% : 1 of 1
2
RemoveAll() : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
RemoveItem(Newtonsoft.Json.Linq.JToken item) : System.Boolean  100.00% : 18 of 18
100.00% : 10 of 10
100.00% : 1 of 1
6
RemoveItemAt(System.Int32 index) : void  100.00% : 14 of 14
100.00% : 8 of 8
100.00% : 1 of 1
5
ReplaceAll(System.Object content) : void  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
set_Content(Newtonsoft.Json.Linq.JToken value) : void  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
SetItem(System.Int32 index,Newtonsoft.Json.Linq.JToken item) : void  100.00% : 5 of 5
100.00% : 1 of 1
100.00% : 1 of 1
1
ValidateToken(Newtonsoft.Json.Linq.JToken o,Newtonsoft.Json.Linq.JToken existing) : void  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
Values<T>() : System.Collections.Generic.IEnumerable<T>  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
add_AddingNew(System.ComponentModel.AddingNewEventHandler value) : void  N/A : 0 of 0
100.00% : 3 of 3
100.00% : 1 of 1
2
add_ListChanged(System.ComponentModel.ListChangedEventHandler value) : void  N/A : 0 of 0
100.00% : 3 of 3
100.00% : 1 of 1
2
ChildrenInternal() : System.Collections.Generic.IEnumerable<Newtonsoft.Json.Linq.JToken>  N/A : 0 of 0
100.00% : 1 of 1
100.00% : 1 of 1
1
Descendants() : System.Collections.Generic.IEnumerable<Newtonsoft.Json.Linq.JToken>  N/A : 0 of 0
100.00% : 1 of 1
100.00% : 1 of 1
1
remove_AddingNew(System.ComponentModel.AddingNewEventHandler value) : void  N/A : 0 of 0
0.00% : 0 of 3
0.00% : 0 of 1
2
remove_ListChanged(System.ComponentModel.ListChangedEventHandler value) : void  N/A : 0 of 0
0.00% : 0 of 3
0.00% : 0 of 1
2