< Summary

Class:Azure.Identity.FileSystemService
Assembly:Azure.Identity
File(s):C:\Git\azure-sdk-for-net\sdk\identity\Azure.Identity\src\FileSystemService.cs
Covered lines:2
Uncovered lines:2
Coverable lines:4
Total lines:17
Line coverage:50% (2 of 4)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_Default()-100%100%
.ctor()-100%100%
FileExists(...)-0%100%
ReadAllText(...)-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\identity\Azure.Identity\src\FileSystemService.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.IO;
 5
 6namespace Azure.Identity
 7{
 8    internal class FileSystemService : IFileSystemService
 9    {
 9410        public static IFileSystemService Default { get; } = new FileSystemService();
 11
 412        private FileSystemService() { }
 13
 014        public bool FileExists(string path) => File.Exists(path);
 015        public string ReadAllText(string path) => File.ReadAllText(path);
 16    }
 17}