< Summary

Class:Azure.ResourceManager.Storage.Models.Kind
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\Kind.cs
Covered lines:12
Uncovered lines:2
Coverable lines:14
Total lines:59
Line coverage:85.7% (12 of 14)
Covered branches:2
Total branches:6
Branch coverage:33.3% (2 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%50%
get_Storage()-100%100%
get_StorageV2()-100%100%
get_BlobStorage()-100%100%
get_FileStorage()-100%100%
get_BlockBlobStorage()-100%100%
op_Equality(...)-100%100%
op_Inequality(...)-100%100%
op_Implicit(...)-0%100%
Equals(...)-100%50%
Equals(...)-100%100%
GetHashCode()-0%0%
ToString()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\Kind.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.ComponentModel;
 10
 11namespace Azure.ResourceManager.Storage.Models
 12{
 13    /// <summary> Indicates the type of storage account. </summary>
 14    public readonly partial struct Kind : IEquatable<Kind>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="Kind"/> values are the same. </summary>
 19        public Kind(string value)
 20        {
 329821            _value = value ?? throw new ArgumentNullException(nameof(value));
 329822        }
 23
 24        private const string StorageValue = "Storage";
 25        private const string StorageV2Value = "StorageV2";
 26        private const string BlobStorageValue = "BlobStorage";
 27        private const string FileStorageValue = "FileStorage";
 28        private const string BlockBlobStorageValue = "BlockBlobStorage";
 29
 30        /// <summary> Storage. </summary>
 18031        public static Kind Storage { get; } = new Kind(StorageValue);
 32        /// <summary> StorageV2. </summary>
 16633        public static Kind StorageV2 { get; } = new Kind(StorageV2Value);
 34        /// <summary> BlobStorage. </summary>
 3835        public static Kind BlobStorage { get; } = new Kind(BlobStorageValue);
 36        /// <summary> FileStorage. </summary>
 18237        public static Kind FileStorage { get; } = new Kind(FileStorageValue);
 38        /// <summary> BlockBlobStorage. </summary>
 1039        public static Kind BlockBlobStorage { get; } = new Kind(BlockBlobStorageValue);
 40        /// <summary> Determines if two <see cref="Kind"/> values are the same. </summary>
 24041        public static bool operator ==(Kind left, Kind right) => left.Equals(right);
 42        /// <summary> Determines if two <see cref="Kind"/> values are not the same. </summary>
 17243        public static bool operator !=(Kind left, Kind right) => !left.Equals(right);
 44        /// <summary> Converts a string to a <see cref="Kind"/>. </summary>
 045        public static implicit operator Kind(string value) => new Kind(value);
 46
 47        /// <inheritdoc />
 48        [EditorBrowsable(EditorBrowsableState.Never)]
 1249        public override bool Equals(object obj) => obj is Kind other && Equals(other);
 50        /// <inheritdoc />
 52051        public bool Equals(Kind other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCas
 52
 53        /// <inheritdoc />
 54        [EditorBrowsable(EditorBrowsableState.Never)]
 055        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 56        /// <inheritdoc />
 59257        public override string ToString() => _value;
 58    }
 59}