< Summary

Class:Azure.Identity.EnvironmentVariables
Assembly:Azure.Identity
File(s):C:\Git\azure-sdk-for-net\sdk\identity\Azure.Identity\src\EnvironmentVariables.cs
Covered lines:12
Uncovered lines:0
Coverable lines:12
Total lines:26
Line coverage:100% (12 of 12)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_Username()-100%100%
get_Password()-100%100%
get_TenantId()-100%100%
get_ClientId()-100%100%
get_ClientSecret()-100%100%
get_ClientCertificatePath()-100%100%
get_MsiEndpoint()-100%100%
get_MsiSecret()-100%100%
get_Path()-100%100%
get_ProgramFilesX86()-100%100%
get_ProgramFiles()-100%100%
get_AuthorityHost()-100%100%

File(s)

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

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5
 6namespace Azure.Identity
 7{
 8    internal class EnvironmentVariables
 9    {
 116810        public static string Username => Environment.GetEnvironmentVariable("AZURE_USERNAME");
 2211        public static string Password => Environment.GetEnvironmentVariable("AZURE_PASSWORD");
 460612        public static string TenantId => Environment.GetEnvironmentVariable("AZURE_TENANT_ID");
 116813        public static string ClientId => Environment.GetEnvironmentVariable("AZURE_CLIENT_ID");
 2214        public static string ClientSecret => Environment.GetEnvironmentVariable("AZURE_CLIENT_SECRET");
 2215        public static string ClientCertificatePath => Environment.GetEnvironmentVariable("AZURE_CLIENT_CERTIFICATE_PATH"
 16
 4817        public static string MsiEndpoint => Environment.GetEnvironmentVariable("MSI_ENDPOINT");
 5618        public static string MsiSecret => Environment.GetEnvironmentVariable("MSI_SECRET");
 19
 27620        public static string Path => Environment.GetEnvironmentVariable("PATH");
 21
 222        public static string ProgramFilesX86 => Environment.GetEnvironmentVariable("ProgramFiles(x86)");
 223        public static string ProgramFiles => Environment.GetEnvironmentVariable("ProgramFiles");
 21424        public static string AuthorityHost => Environment.GetEnvironmentVariable("AZURE_AUTHORITY_HOST");
 25    }
 26}