< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%100%
.ctor(...)-0%100%
get_Status()-0%100%
get_ExecutionCount()-0%100%
get_Data()-0%100%
get_ErrorName()-0%100%
get_ErrorValue()-0%100%
get_Traceback()-0%100%
DeserializeSparkStatementOutput(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Spark\src\Generated\Models\SparkStatementOutput.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.Analytics.Synapse.Spark.Models
 12{
 13    /// <summary> The SparkStatementOutput. </summary>
 14    public partial class SparkStatementOutput
 15    {
 16        /// <summary> Initializes a new instance of SparkStatementOutput. </summary>
 17        /// <param name="executionCount"> . </param>
 018        internal SparkStatementOutput(int executionCount)
 19        {
 020            ExecutionCount = executionCount;
 021            Traceback = new ChangeTrackingList<string>();
 022        }
 23
 24        /// <summary> Initializes a new instance of SparkStatementOutput. </summary>
 25        /// <param name="status"> . </param>
 26        /// <param name="executionCount"> . </param>
 27        /// <param name="data"> Any object. </param>
 28        /// <param name="errorName"> . </param>
 29        /// <param name="errorValue"> . </param>
 30        /// <param name="traceback"> . </param>
 031        internal SparkStatementOutput(string status, int executionCount, object data, string errorName, string errorValu
 32        {
 033            Status = status;
 034            ExecutionCount = executionCount;
 035            Data = data;
 036            ErrorName = errorName;
 037            ErrorValue = errorValue;
 038            Traceback = traceback;
 039        }
 40
 041        public string Status { get; }
 042        public int ExecutionCount { get; }
 43        /// <summary> Any object. </summary>
 044        public object Data { get; }
 045        public string ErrorName { get; }
 046        public string ErrorValue { get; }
 047        public IReadOnlyList<string> Traceback { get; }
 48    }
 49}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Spark\src\Generated\Models\SparkStatementOutput.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.Spark.Models
 13{
 14    public partial class SparkStatementOutput
 15    {
 16        internal static SparkStatementOutput DeserializeSparkStatementOutput(JsonElement element)
 17        {
 018            Optional<string> status = default;
 019            int executionCount = default;
 020            Optional<object> data = default;
 021            Optional<string> ename = default;
 022            Optional<string> evalue = default;
 023            Optional<IReadOnlyList<string>> traceback = default;
 024            foreach (var property in element.EnumerateObject())
 25            {
 026                if (property.NameEquals("status"))
 27                {
 028                    status = property.Value.GetString();
 029                    continue;
 30                }
 031                if (property.NameEquals("execution_count"))
 32                {
 033                    executionCount = property.Value.GetInt32();
 034                    continue;
 35                }
 036                if (property.NameEquals("data"))
 37                {
 038                    data = property.Value.GetObject();
 039                    continue;
 40                }
 041                if (property.NameEquals("ename"))
 42                {
 043                    ename = property.Value.GetString();
 044                    continue;
 45                }
 046                if (property.NameEquals("evalue"))
 47                {
 048                    evalue = property.Value.GetString();
 049                    continue;
 50                }
 051                if (property.NameEquals("traceback"))
 52                {
 053                    List<string> array = new List<string>();
 054                    foreach (var item in property.Value.EnumerateArray())
 55                    {
 056                        array.Add(item.GetString());
 57                    }
 058                    traceback = array;
 59                    continue;
 60                }
 61            }
 062            return new SparkStatementOutput(status.Value, executionCount, data.Value, ename.Value, evalue.Value, Optiona
 63        }
 64    }
 65}