< Summary

Class:Azure.Data.Tables.Models.TableResponse
Assembly:Azure.Data.Tables
File(s):C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableResponse.cs
C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableResponse.Serialization.cs
Covered lines:24
Uncovered lines:3
Coverable lines:27
Total lines:85
Line coverage:88.8% (24 of 27)
Covered branches:12
Total branches:12
Branch coverage:100% (12 of 12)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_OdataMetadata()-0%100%
DeserializeTableResponse(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableResponse.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> The response for a single table. </summary>
 11    internal partial class TableResponse : TableItem
 12    {
 13        /// <summary> Initializes a new instance of TableResponse. </summary>
 014        internal TableResponse()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of TableResponse. </summary>
 19        /// <param name="tableName"> The name of the table. </param>
 20        /// <param name="odataType"> The odata type of the table. </param>
 21        /// <param name="odataId"> The id of the table. </param>
 22        /// <param name="odataEditLink"> The edit link of the table. </param>
 23        /// <param name="odataMetadata"> The metadata response of the table. </param>
 64024        internal TableResponse(string tableName, string odataType, string odataId, string odataEditLink, string odataMet
 25        {
 64026            OdataMetadata = odataMetadata;
 64027        }
 28
 29        /// <summary> The metadata response of the table. </summary>
 030        public string OdataMetadata { get; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableResponse.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.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.Data.Tables.Models
 12{
 13    internal partial class TableResponse
 14    {
 15        internal static TableResponse DeserializeTableResponse(JsonElement element)
 16        {
 64017            Optional<string> odataMetadata = default;
 64018            Optional<string> tableName = default;
 64019            Optional<string> odataType = default;
 64020            Optional<string> odataId = default;
 64021            Optional<string> odataEditLink = default;
 580822            foreach (var property in element.EnumerateObject())
 23            {
 226424                if (property.NameEquals("odata.metadata"))
 25                {
 64026                    odataMetadata = property.Value.GetString();
 64027                    continue;
 28                }
 162429                if (property.NameEquals("TableName"))
 30                {
 64031                    tableName = property.Value.GetString();
 64032                    continue;
 33                }
 98434                if (property.NameEquals("odata.type"))
 35                {
 32836                    odataType = property.Value.GetString();
 32837                    continue;
 38                }
 65639                if (property.NameEquals("odata.id"))
 40                {
 32841                    odataId = property.Value.GetString();
 32842                    continue;
 43                }
 32844                if (property.NameEquals("odata.editLink"))
 45                {
 32846                    odataEditLink = property.Value.GetString();
 47                    continue;
 48                }
 49            }
 64050            return new TableResponse(tableName.Value, odataType.Value, odataId.Value, odataEditLink.Value, odataMetadata
 51        }
 52    }
 53}