< Summary

Class:Azure.AI.TextAnalytics.AnalyzeSentimentResultCollection
Assembly:Azure.AI.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\AnalyzeSentimentResultCollection.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\AnalyzeSentimentResultCollection.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="AnalyzeSentimentResult"/> objects corresponding
 11    /// to a batch of documents, and information about the batch operation.
 12    /// </summary>
 13    public class AnalyzeSentimentResultCollection : ReadOnlyCollection<AnalyzeSentimentResult>
 14    {
 2815        internal AnalyzeSentimentResultCollection(IList<AnalyzeSentimentResult> list, TextDocumentBatchStatistics statis
 16        {
 2817            Statistics = statistics;
 2818            ModelVersion = modelVersion;
 2819        }
 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}