< Summary

Class:Azure.Data.Tables.Models.TableEntityQueryResponse
Assembly:Azure.Data.Tables
File(s):C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableEntityQueryResponse.cs
C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableEntityQueryResponse.Serialization.cs
Covered lines:20
Uncovered lines:4
Coverable lines:24
Total lines:82
Line coverage:83.3% (20 of 24)
Covered branches:10
Total branches:10
Branch coverage:100% (10 of 10)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableEntityQueryResponse.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.Collections.Generic;
 9using Azure.Core;
 10
 11namespace Azure.Data.Tables.Models
 12{
 13    /// <summary> The properties for the table entity query response. </summary>
 14    internal partial class TableEntityQueryResponse
 15    {
 16        /// <summary> Initializes a new instance of TableEntityQueryResponse. </summary>
 017        internal TableEntityQueryResponse()
 18        {
 019            Value = new ChangeTrackingList<IDictionary<string, object>>();
 020        }
 21
 22        /// <summary> Initializes a new instance of TableEntityQueryResponse. </summary>
 23        /// <param name="odataMetadata"> The metadata response of the table. </param>
 24        /// <param name="value"> List of table entities. </param>
 73225        internal TableEntityQueryResponse(string odataMetadata, IReadOnlyList<IDictionary<string, object>> value)
 26        {
 73227            OdataMetadata = odataMetadata;
 73228            Value = value;
 73229        }
 30
 31        /// <summary> The metadata response of the table. </summary>
 032        public string OdataMetadata { get; }
 33        /// <summary> List of table entities. </summary>
 73234        public IReadOnlyList<IDictionary<string, object>> Value { get; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableEntityQueryResponse.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.Collections.Generic;
 9using System.Text.Json;
 10using Azure.Core;
 11
 12namespace Azure.Data.Tables.Models
 13{
 14    internal partial class TableEntityQueryResponse
 15    {
 16        internal static TableEntityQueryResponse DeserializeTableEntityQueryResponse(JsonElement element)
 17        {
 73218            Optional<string> odataMetadata = default;
 73219            Optional<IReadOnlyList<IDictionary<string, object>>> value = default;
 369620            foreach (var property in element.EnumerateObject())
 21            {
 111622                if (property.NameEquals("odata.metadata"))
 23                {
 38424                    odataMetadata = property.Value.GetString();
 38425                    continue;
 26                }
 73227                if (property.NameEquals("value"))
 28                {
 73229                    List<IDictionary<string, object>> array = new List<IDictionary<string, object>>();
 548830                    foreach (var item in property.Value.EnumerateArray())
 31                    {
 201232                        Dictionary<string, object> dictionary = new Dictionary<string, object>();
 11471233                        foreach (var property0 in item.EnumerateObject())
 34                        {
 5534435                            dictionary.Add(property0.Name, property0.Value.GetObject());
 36                        }
 201237                        array.Add(dictionary);
 38                    }
 73239                    value = array;
 40                    continue;
 41                }
 42            }
 73243            return new TableEntityQueryResponse(odataMetadata.Value, Optional.ToList(value));
 44        }
 45    }
 46}