< Summary

Class:Azure.Data.Tables.Models.TableServiceStatistics
Assembly:Azure.Data.Tables
File(s):C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableServiceStatistics.cs
C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableServiceStatistics.Serialization.cs
Covered lines:8
Uncovered lines:2
Coverable lines:10
Total lines:53
Line coverage:80% (8 of 10)
Covered branches:2
Total branches:2
Branch coverage:100% (2 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_GeoReplication()-100%100%
DeserializeTableServiceStatistics(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableServiceStatistics.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8namespace Azure.Data.Tables.Models
 9{
 10    /// <summary> Stats for the service. </summary>
 11    public partial class TableServiceStatistics
 12    {
 13        /// <summary> Initializes a new instance of TableServiceStatistics. </summary>
 014        internal TableServiceStatistics()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of TableServiceStatistics. </summary>
 19        /// <param name="geoReplication"> Geo-Replication information for the Secondary Storage Service. </param>
 420        internal TableServiceStatistics(TableGeoReplication geoReplication)
 21        {
 422            GeoReplication = geoReplication;
 423        }
 24
 25        /// <summary> Geo-Replication information for the Secondary Storage Service. </summary>
 426        public TableGeoReplication GeoReplication { get; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableServiceStatistics.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System.Xml.Linq;
 9using Azure.Core;
 10
 11namespace Azure.Data.Tables.Models
 12{
 13    public partial class TableServiceStatistics
 14    {
 15        internal static TableServiceStatistics DeserializeTableServiceStatistics(XElement element)
 16        {
 417            TableGeoReplication geoReplication = default;
 418            if (element.Element("GeoReplication") is XElement geoReplicationElement)
 19            {
 420                geoReplication = TableGeoReplication.DeserializeTableGeoReplication(geoReplicationElement);
 21            }
 422            return new TableServiceStatistics(geoReplication);
 23        }
 24    }
 25}