< Summary

Class:Azure.AI.TextAnalytics.ClientOptionsExtensions
Assembly:Azure.AI.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\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\textanalytics\Azure.AI.TextAnalytics\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.AI.TextAnalytics
 8{
 9    internal static class ClientOptionsExtensions
 10    {
 11        public static void ConfigureLogging(this ClientOptions clientOptions)
 12        {
 20013            IList<string> loggedHeaderNames = clientOptions.Diagnostics.LoggedHeaderNames;
 20014            loggedHeaderNames.Add("Access-Control-Allow-Credentials");
 20015            loggedHeaderNames.Add("Access-Control-Allow-Headers");
 20016            loggedHeaderNames.Add("Access-Control-Allow-Methods");
 20017            loggedHeaderNames.Add("Access-Control-Allow-Origin");
 20018            loggedHeaderNames.Add("Etag");
 20019            loggedHeaderNames.Add("Last-Modified");
 20020            loggedHeaderNames.Add("Strict-transport-security");
 20021            loggedHeaderNames.Add("Sync-Token");
 20022            loggedHeaderNames.Add("x-ms-correlation-request-id");
 20023            loggedHeaderNames.Add("x-ms-request-id ");
 24
 20025            clientOptions.Diagnostics.LoggedQueryParameters.Add("api-version");
 20026        }
 27    }
 28}

Methods/Properties

ConfigureLogging(...)