< Summary

Class:Azure.Analytics.Synapse.Artifacts.Models.DatasetFolder
Assembly:Azure.Analytics.Synapse.Artifacts
File(s):C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\DatasetFolder.cs
C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\DatasetFolder.Serialization.cs
Covered lines:0
Uncovered lines:17
Coverable lines:17
Total lines:68
Line coverage:0% (0 of 17)
Covered branches:0
Total branches:6
Branch coverage:0% (0 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Name()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeDatasetFolder(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\DatasetFolder.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.Analytics.Synapse.Artifacts.Models
 9{
 10    /// <summary> The folder that this Dataset is in. If not specified, Dataset will appear at the root level. </summary
 11    public partial class DatasetFolder
 12    {
 13        /// <summary> Initializes a new instance of DatasetFolder. </summary>
 014        public DatasetFolder()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of DatasetFolder. </summary>
 19        /// <param name="name"> The name of the folder that this Dataset is in. </param>
 020        internal DatasetFolder(string name)
 21        {
 022            Name = name;
 023        }
 24
 25        /// <summary> The name of the folder that this Dataset is in. </summary>
 026        public string Name { get; set; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\DatasetFolder.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.Analytics.Synapse.Artifacts.Models
 12{
 13    public partial class DatasetFolder : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Optional.IsDefined(Name))
 19            {
 020                writer.WritePropertyName("name");
 021                writer.WriteStringValue(Name);
 22            }
 023            writer.WriteEndObject();
 024        }
 25
 26        internal static DatasetFolder DeserializeDatasetFolder(JsonElement element)
 27        {
 028            Optional<string> name = default;
 029            foreach (var property in element.EnumerateObject())
 30            {
 031                if (property.NameEquals("name"))
 32                {
 033                    name = property.Value.GetString();
 34                    continue;
 35                }
 36            }
 037            return new DatasetFolder(name.Value);
 38        }
 39    }
 40}