< Summary

Class:Azure.Analytics.Synapse.Spark.Models.SparkStatementCancellationResult
Assembly:Azure.Analytics.Synapse.Spark
File(s):C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Spark\src\Generated\Models\SparkStatementCancellationResult.cs
C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Spark\src\Generated\Models\SparkStatementCancellationResult.Serialization.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:56
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Msg()-0%100%
DeserializeSparkStatementCancellationResult(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Spark\src\Generated\Models\SparkStatementCancellationResult.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.Spark.Models
 9{
 10    /// <summary> The SparkStatementCancellationResult. </summary>
 11    public partial class SparkStatementCancellationResult
 12    {
 13        /// <summary> Initializes a new instance of SparkStatementCancellationResult. </summary>
 014        internal SparkStatementCancellationResult()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of SparkStatementCancellationResult. </summary>
 19        /// <param name="msg"> . </param>
 020        internal SparkStatementCancellationResult(string msg)
 21        {
 022            Msg = msg;
 023        }
 24
 025        public string Msg { get; }
 26    }
 27}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Spark\src\Generated\Models\SparkStatementCancellationResult.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.Spark.Models
 12{
 13    public partial class SparkStatementCancellationResult
 14    {
 15        internal static SparkStatementCancellationResult DeserializeSparkStatementCancellationResult(JsonElement element
 16        {
 017            Optional<string> msg = default;
 018            foreach (var property in element.EnumerateObject())
 19            {
 020                if (property.NameEquals("msg"))
 21                {
 022                    msg = property.Value.GetString();
 23                    continue;
 24                }
 25            }
 026            return new SparkStatementCancellationResult(msg.Value);
 27        }
 28    }
 29}