Skip to content

Commit e0dc839

Browse files
author
Alex Peck
committed
excl
1 parent 5b74a42 commit e0dc839

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

BitFaster.Caching/Lfu/LfuNodeList.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections;
33
using System.Collections.Generic;
44
using System.Diagnostics;
5+
using System.Diagnostics.CodeAnalysis;
56
using System.Runtime.Serialization;
67
using System.Text;
78

@@ -108,12 +109,14 @@ public IEnumerator<LfuNode<K, V>> GetEnumerator()
108109
return new Enumerator(this);
109110
}
110111

112+
[ExcludeFromCodeCoverage]
111113
IEnumerator IEnumerable.GetEnumerator()
112114
{
113115
return GetEnumerator();
114116
}
115117

116118
#if DEBUG
119+
[ExcludeFromCodeCoverage]
117120
internal static void ValidateNewNode(LfuNode<K, V> node)
118121
{
119122
if (node == null)
@@ -127,6 +130,7 @@ internal static void ValidateNewNode(LfuNode<K, V> node)
127130
}
128131
}
129132

133+
[ExcludeFromCodeCoverage]
130134
internal void ValidateNode(LfuNode<K, V> node)
131135
{
132136
if (node == null)
@@ -158,6 +162,7 @@ internal Enumerator(LfuNodeList<K, V> list)
158162

159163
public LfuNode<K, V> Current => current;
160164

165+
[ExcludeFromCodeCoverage]
161166
object IEnumerator.Current
162167
{
163168
get
@@ -191,6 +196,7 @@ public bool MoveNext()
191196
return true;
192197
}
193198

199+
[ExcludeFromCodeCoverage]
194200
void IEnumerator.Reset()
195201
{
196202
current = default;

0 commit comments

Comments
 (0)