2 instantiations of PatternTestResult
Microsoft.Extensions.FileSystemGlobbing (2)
Internal\PatternTestResult.cs (2)
12public static readonly PatternTestResult Failed = new(isSuccessful: false, stem: null); 25return new PatternTestResult(isSuccessful: true, stem: stem);
20 references to PatternTestResult
Microsoft.Extensions.FileSystemGlobbing (20)
Internal\IPatternContext.cs (1)
19PatternTestResult Test(FileInfoBase file);
Internal\MatcherContext.cs (10)
92PatternTestResult result = MatchPatternContexts(fileInfo, (pattern, file) => pattern.Test(file)); 182return PatternTestResult.Success(stem: string.Empty); 186return PatternTestResult.Failed; 191private PatternTestResult MatchPatternContexts<TFileInfoBase>(TFileInfoBase fileinfo, Func<IPatternContext, TFileInfoBase, PatternTestResult> test) 193PatternTestResult result = PatternTestResult.Failed; 198PatternTestResult localResult = test(context, fileinfo); 209return PatternTestResult.Failed; 217return PatternTestResult.Failed;
Internal\PatternContexts\PatternContext.cs (1)
17public abstract PatternTestResult Test(FileInfoBase file);
Internal\PatternContexts\PatternContextLinear.cs (3)
20public override PatternTestResult Test(FileInfoBase file) 29return PatternTestResult.Success(CalculateStem(file)); 32return PatternTestResult.Failed;
Internal\PatternContexts\PatternContextRagged.cs (3)
19public override PatternTestResult Test(FileInfoBase file) 28return PatternTestResult.Success(CalculateStem(file)); 30return PatternTestResult.Failed;
Internal\PatternTestResult.cs (2)
12public static readonly PatternTestResult Failed = new(isSuccessful: false, stem: null); 23public static PatternTestResult Success(string? stem)