< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 25
Line coverage: 0%
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 Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%110%
IndexOfAnyMultiString(...)100%110%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Private.CoreLib/src/System/SearchValues/Strings/AsciiStringSearchValuesTeddyNonBucketizedN2.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System.Collections.Generic;
 5using System.Runtime.CompilerServices;
 6using System.Runtime.Intrinsics.Arm;
 7using System.Runtime.Intrinsics.X86;
 8
 9namespace System.Buffers
 10{
 11    internal sealed class AsciiStringSearchValuesTeddyNonBucketizedN2<TStartCaseSensitivity, TCaseSensitivity> : AsciiSt
 12        where TStartCaseSensitivity : struct, StringSearchValuesHelper.ICaseSensitivity
 13        where TCaseSensitivity : struct, StringSearchValuesHelper.ICaseSensitivity
 14    {
 15        public AsciiStringSearchValuesTeddyNonBucketizedN2(ReadOnlySpan<string> values, HashSet<string> uniqueValues)
 016            : base(values, uniqueValues, n: 2)
 017        { }
 18
 19        [CompExactlyDependsOn(typeof(Ssse3))]
 20        [CompExactlyDependsOn(typeof(AdvSimd.Arm64))]
 21        internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
 022            IndexOfAnyN2(span);
 23    }
 24}
 25