< Summary

Class:Azure.AI.TextAnalytics.DetectLanguageResultCollection
Assembly:Azure.AI.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\DetectLanguageResultCollection.cs
Covered lines:5
Uncovered lines:1
Coverable lines:6
Total lines:39
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\DetectLanguageResultCollection.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="DetectLanguageResult"/> objects corresponding
 11    /// to a batch of documents, and information about the batch operation.
 12    /// </summary>
 13    public class DetectLanguageResultCollection : ReadOnlyCollection<DetectLanguageResult>
 14    {
 15        /// <summary>
 16        /// </summary>
 17        /// <param name="list"></param>
 18        /// <param name="statistics"></param>
 19        /// <param name="modelVersion"></param>
 2020        internal DetectLanguageResultCollection(IList<DetectLanguageResult> list, TextDocumentBatchStatistics statistics
 21        {
 2022            Statistics = statistics;
 2023            ModelVersion = modelVersion;
 2024        }
 25
 26        /// <summary>
 27        /// Gets statistics about the documents batch and how it was processed
 28        /// by the service.  This property will have a value when IncludeStatistics
 29        /// is set to true in the client call.
 30        /// </summary>
 2431        public TextDocumentBatchStatistics Statistics { get; }
 32
 33        /// <summary>
 34        /// Gets the version of the Text Analytics model used by this operation
 35        /// on this batch of documents.
 36        /// </summary>
 037        public string ModelVersion { get; }
 38    }
 39}