< Summary

Class:Azure.AI.TextAnalytics.TextAnalyticsWarning
Assembly:Azure.AI.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\TextAnalyticsWarning.cs
Covered lines:4
Uncovered lines:4
Coverable lines:8
Total lines:35
Line coverage:50% (4 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
.ctor(...)-0%100%
get_WarningCode()-100%100%
get_Message()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\TextAnalyticsWarning.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using Azure.AI.TextAnalytics.Models;
 5
 6namespace Azure.AI.TextAnalytics
 7{
 8    /// <summary>
 9    /// Text Analytics Warning.
 10    /// </summary>
 11    public struct TextAnalyticsWarning
 12    {
 13        internal TextAnalyticsWarning(string code, string message)
 14        {
 415            WarningCode = code;
 416            Message = message;
 417        }
 18
 19        internal TextAnalyticsWarning(TextAnalyticsWarning_internal warning)
 20        {
 021            WarningCode = warning.Code;
 022            Message = warning.Message;
 023        }
 24
 25        /// <summary>
 26        /// Code indicating the type of warning.
 27        /// </summary>
 428        public TextAnalyticsWarningCode WarningCode { get; }
 29
 30        /// <summary>
 31        /// Message that contains more information about the reason of the warning.
 32        /// </summary>
 033        public string Message { get; }
 34    }
 35}