< Summary

Class:Microsoft.Azure.Batch.Protocol.Models.ExitCodeMapping
Assembly:Microsoft.Azure.Batch
File(s):C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\ExitCodeMapping.cs
Covered lines:8
Uncovered lines:0
Coverable lines:8
Total lines:62
Line coverage:100% (8 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-100%100%
get_Code()-100%100%
get_ExitOptions()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\ExitCodeMapping.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.Batch.Protocol.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// How the Batch service should respond if a Task exits with a particular
 18    /// exit code.
 19    /// </summary>
 20    public partial class ExitCodeMapping
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the ExitCodeMapping class.
 24        /// </summary>
 166925        public ExitCodeMapping()
 26        {
 27            CustomInit();
 166928        }
 29
 30        /// <summary>
 31        /// Initializes a new instance of the ExitCodeMapping class.
 32        /// </summary>
 33        /// <param name="code">A process exit code.</param>
 34        /// <param name="exitOptions">How the Batch service should respond if
 35        /// the Task exits with this exit code.</param>
 136        public ExitCodeMapping(int code, ExitOptions exitOptions)
 37        {
 138            Code = code;
 139            ExitOptions = exitOptions;
 40            CustomInit();
 141        }
 42
 43        /// <summary>
 44        /// An initialization method that performs custom operations like setting defaults
 45        /// </summary>
 46        partial void CustomInit();
 47
 48        /// <summary>
 49        /// Gets or sets a process exit code.
 50        /// </summary>
 51        [JsonProperty(PropertyName = "code")]
 391352        public int Code { get; set; }
 53
 54        /// <summary>
 55        /// Gets or sets how the Batch service should respond if the Task exits
 56        /// with this exit code.
 57        /// </summary>
 58        [JsonProperty(PropertyName = "exitOptions")]
 390459        public ExitOptions ExitOptions { get; set; }
 60
 61    }
 62}