< Summary

Class:Azure.AI.TextAnalytics.ExtractKeyPhrasesResultCollection
Assembly:Azure.AI.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\ExtractKeyPhrasesResultCollection.cs
Covered lines:5
Uncovered lines:1
Coverable lines:6
Total lines:34
Line coverage:83.3% (5 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_Statistics()-100%100%
get_ModelVersion()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\ExtractKeyPhrasesResultCollection.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 <see cref="ExtractKeyPhrasesResult"/> objects corresponding
 11    /// to a batch of documents, and information about the batch operation.
 12    /// </summary>
 13    public class ExtractKeyPhrasesResultCollection : ReadOnlyCollection<ExtractKeyPhrasesResult>
 14    {
 3215        internal ExtractKeyPhrasesResultCollection(IList<ExtractKeyPhrasesResult> list, TextDocumentBatchStatistics stat
 16        {
 3217            Statistics = statistics;
 3218            ModelVersion = modelVersion;
 3219        }
 20
 21        /// <summary>
 22        /// Gets statistics about the documents and how it was processed
 23        /// by the service.  This property will have a value when IncludeStatistics
 24        /// is set to true in the client call.
 25        /// </summary>
 3226        public TextDocumentBatchStatistics Statistics { get; }
 27
 28        /// <summary>
 29        /// Gets the version of the Text Analytics model used by this operation
 30        /// on this batch of documents.
 31        /// </summary>
 032        public string ModelVersion { get; }
 33    }
 34}