< Summary

Information
Class: SwitchBlade.Core.FileSystemWrapper
Assembly: SwitchBlade
File(s): D:\a\switchblade\switchblade\Core\FileSystemWrapper.cs
Tag: 203_23722840422
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 19
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
FileExists(...)100%11100%
ReadAllText(...)100%11100%
ReadAllTextAsync(...)100%11100%
OpenRead(...)100%11100%

File(s)

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

#LineLine coverage
 1using System.IO;
 2using System.Threading;
 3using System.Threading.Tasks;
 4using SwitchBlade.Contracts;
 5
 6namespace SwitchBlade.Core
 7{
 8    public class FileSystemWrapper : IFileSystem
 9    {
 510        public bool FileExists(string path) => File.Exists(path);
 11
 112        public string ReadAllText(string path) => File.ReadAllText(path);
 13
 14        public Task<string> ReadAllTextAsync(string path, CancellationToken cancellationToken = default)
 115            => File.ReadAllTextAsync(path, cancellationToken);
 16
 117        public Stream OpenRead(string path) => File.OpenRead(path);
 18    }
 19}