< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_Warnings()-100%100%

File(s)

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

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Collections.Generic;
 5using System.Collections.ObjectModel;
 6
 7namespace Azure.AI.TextAnalytics
 8{
 9    /// <summary>
 10    /// Collection of key phrases present in a document.
 11    /// </summary>
 12    public class KeyPhraseCollection : ReadOnlyCollection<string>
 13    {
 14        internal KeyPhraseCollection(IList<string> keyPhrases, IList<TextAnalyticsWarning> warnings)
 5215            : base(keyPhrases)
 16        {
 5217            Warnings = new ReadOnlyCollection<TextAnalyticsWarning>(warnings);
 5218        }
 19
 20        /// <summary>
 21        /// Warnings encountered while processing the document.
 22        /// </summary>
 1223        public IReadOnlyCollection<TextAnalyticsWarning> Warnings { get; }
 24    }
 25}

Methods/Properties

.ctor(...)
get_Warnings()