< Summary

Information
Class: SwitchBlade.Core.FuzzyMatcherAdapter
Assembly: SwitchBlade
File(s): D:\a\switchblade\switchblade\Core\FuzzyMatcherAdapter.cs
Tag: 203_23722840422
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 15
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
Score(...)100%11100%
IsMatch(...)100%11100%

File(s)

D:\a\switchblade\switchblade\Core\FuzzyMatcherAdapter.cs

#LineLine coverage
 1namespace SwitchBlade.Core
 2{
 3    /// <summary>
 4    /// Adapter that wraps the static <see cref="FuzzyMatcher"/> behind the <see cref="IMatcher"/> interface.
 5    /// This preserves the high-performance static implementation while enabling DI and testability.
 6    /// </summary>
 7    public class FuzzyMatcherAdapter : IMatcher
 8    {
 9        /// <inheritdoc />
 1410        public int Score(string title, string query) => FuzzyMatcher.Score(title, query);
 11
 12        /// <inheritdoc />
 113        public bool IsMatch(string title, string query) => FuzzyMatcher.IsMatch(title, query);
 14    }
 15}