< Summary

Class:Azure.Analytics.Synapse.Artifacts.Models.PipelineListResponse
Assembly:Azure.Analytics.Synapse.Artifacts
File(s):C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\PipelineListResponse.cs
C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\PipelineListResponse.Serialization.cs
Covered lines:16
Uncovered lines:7
Coverable lines:23
Total lines:85
Line coverage:69.5% (16 of 23)
Covered branches:6
Total branches:10
Branch coverage:60% (6 of 10)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-100%100%
get_Value()-100%100%
get_NextLink()-100%100%
DeserializePipelineListResponse(...)-83.33%75%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\PipelineListResponse.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;
 9using System.Collections.Generic;
 10using System.Linq;
 11
 12namespace Azure.Analytics.Synapse.Artifacts.Models
 13{
 14    /// <summary> A list of pipeline resources. </summary>
 15    public partial class PipelineListResponse
 16    {
 17        /// <summary> Initializes a new instance of PipelineListResponse. </summary>
 18        /// <param name="value"> List of pipelines. </param>
 19        /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
 020        internal PipelineListResponse(IEnumerable<PipelineResource> value)
 21        {
 022            if (value == null)
 23            {
 024                throw new ArgumentNullException(nameof(value));
 25            }
 26
 027            Value = value.ToList();
 028        }
 29
 30        /// <summary> Initializes a new instance of PipelineListResponse. </summary>
 31        /// <param name="value"> List of pipelines. </param>
 32        /// <param name="nextLink"> The link to the next page of results, if any remaining results exist. </param>
 433        internal PipelineListResponse(IReadOnlyList<PipelineResource> value, string nextLink)
 34        {
 435            Value = value;
 436            NextLink = nextLink;
 437        }
 38
 39        /// <summary> List of pipelines. </summary>
 440        public IReadOnlyList<PipelineResource> Value { get; }
 41        /// <summary> The link to the next page of results, if any remaining results exist. </summary>
 442        public string NextLink { get; }
 43    }
 44}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\PipelineListResponse.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.Analytics.Synapse.Artifacts.Models
 13{
 14    public partial class PipelineListResponse
 15    {
 16        internal static PipelineListResponse DeserializePipelineListResponse(JsonElement element)
 17        {
 418            IReadOnlyList<PipelineResource> value = default;
 419            Optional<string> nextLink = default;
 1620            foreach (var property in element.EnumerateObject())
 21            {
 422                if (property.NameEquals("value"))
 23                {
 424                    List<PipelineResource> array = new List<PipelineResource>();
 1625                    foreach (var item in property.Value.EnumerateArray())
 26                    {
 427                        array.Add(PipelineResource.DeserializePipelineResource(item));
 28                    }
 429                    value = array;
 430                    continue;
 31                }
 032                if (property.NameEquals("nextLink"))
 33                {
 034                    nextLink = property.Value.GetString();
 35                    continue;
 36                }
 37            }
 438            return new PipelineListResponse(value, nextLink.Value);
 39        }
 40    }
 41}