< Summary

Class:Azure.Data.AppConfiguration.ClientOptionsExtensions
Assembly:Azure.Data.AppConfiguration
File(s):C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.Data.AppConfiguration\src\ClientOptionsExtensions.cs
Covered lines:13
Uncovered lines:0
Coverable lines:13
Total lines:28
Line coverage:100% (13 of 13)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
ConfigureLogging(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.Data.AppConfiguration\src\ClientOptionsExtensions.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Collections.Generic;
 5using Azure.Core;
 6
 7namespace Azure.Data.AppConfiguration
 8{
 9    internal static class ClientOptionsExtensions
 10    {
 11        public static void ConfigureLogging(this ClientOptions clientOptions)
 12        {
 32613            IList<string> loggedHeaderNames = clientOptions.Diagnostics.LoggedHeaderNames;
 32614            loggedHeaderNames.Add("Access-Control-Allow-Credentials");
 32615            loggedHeaderNames.Add("Access-Control-Allow-Headers");
 32616            loggedHeaderNames.Add("Access-Control-Allow-Methods");
 32617            loggedHeaderNames.Add("Access-Control-Allow-Origin");
 32618            loggedHeaderNames.Add("Etag");
 32619            loggedHeaderNames.Add("Last-Modified");
 32620            loggedHeaderNames.Add("Strict-transport-security");
 32621            loggedHeaderNames.Add("Sync-Token");
 32622            loggedHeaderNames.Add("x-ms-correlation-request-id");
 32623            loggedHeaderNames.Add("x-ms-request-id ");
 24
 32625            clientOptions.Diagnostics.LoggedQueryParameters.Add("api-version");
 32626        }
 27    }
 28}

Methods/Properties

ConfigureLogging(...)