< Summary

Information
Class: CounterpointCollective.Collections.CompletedCoalescingQueueNode<T1, T2>
Assembly: CounterpointCollective.CoalescingQueue
File(s): /builds/counterpointcollective/prestoprimitives/CoalescingQueue/Collections/CompletedCoalescingQueueNode.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 20
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
GetValue()100%11100%

File(s)

/builds/counterpointcollective/prestoprimitives/CoalescingQueue/Collections/CompletedCoalescingQueueNode.cs

#LineLine coverage
 1namespace CounterpointCollective.Collections
 2{
 3    public readonly record struct CompletedCoalescingQueueNode<TContainer, TValue> where TContainer : struct
 4    {
 5        private readonly StructQueue<QueueEntry<TContainer>>.Handle _structQueueHandle;
 6        private readonly RawValueProvider<TContainer, TValue> _valueProvider;
 7
 8        internal CompletedCoalescingQueueNode(
 9            StructQueue<QueueEntry<TContainer>>.Handle structQueueHandle,
 10            RawValueProvider<TContainer, TValue> valueProvider
 11        )
 12        {
 119983113            _structQueueHandle = structQueueHandle;
 119983114            _valueProvider = valueProvider;
 119983115        }
 16
 17        public ref TValue GetValue()
 100000918            => ref _valueProvider(ref _structQueueHandle.GetRef());
 19    }
 20}