< Summary

Class:Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType
Assembly:Azure.Storage.Blobs.ChangeFeed
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Blobs.ChangeFeed\src\Models\BlobChangeFeedEventType.cs
Covered lines:4
Uncovered lines:12
Coverable lines:16
Total lines:84
Line coverage:25% (4 of 16)
Covered branches:1
Total branches:6
Branch coverage:16.6% (1 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%50%
get_UnspecifiedEventType()-0%100%
get_BlobCreated()-100%100%
get_BlobDeleted()-0%100%
get_BlobPropertiesUpdated()-0%100%
get_BlobSnapshotCreated()-0%100%
get_Control()-0%100%
get_BlobTierChanged()-0%100%
get_BlobAsyncOperationInitiated()-0%100%
op_Equality(...)-0%100%
op_Inequality(...)-0%100%
op_Implicit(...)-0%100%
Equals(...)-0%0%
Equals(...)-100%100%
GetHashCode()-0%0%
ToString()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Blobs.ChangeFeed\src\Models\BlobChangeFeedEventType.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using System.ComponentModel;
 6
 7namespace Azure.Storage.Blobs.ChangeFeed
 8{
 9    /// <summary>
 10    /// BlobChangeFeedEventType.
 11    /// </summary>
 12    public readonly struct BlobChangeFeedEventType : IEquatable<BlobChangeFeedEventType>
 13    {
 14        private readonly string _value;
 15
 16        /// <summary>
 17        /// Constructor.
 18        /// </summary>
 5920019        public BlobChangeFeedEventType(string value) { _value = value ?? throw new ArgumentNullException(nameof(value));
 20
 21        /// <summary>
 22        /// Unspecified Event Type.
 23        /// </summary>
 024        public static BlobChangeFeedEventType UnspecifiedEventType { get; } = new BlobChangeFeedEventType("UnspecifiedEv
 25
 26        /// <summary>
 27        /// Blob Created.
 28        /// </summary>
 629        public static BlobChangeFeedEventType BlobCreated { get; } = new BlobChangeFeedEventType("BlobCreated");
 30
 31        /// <summary>
 32        /// Blob Deleted.
 33        /// </summary>
 034        public static BlobChangeFeedEventType BlobDeleted { get; } = new BlobChangeFeedEventType("BlobDeleted");
 35
 36        /// <summary>
 37        /// Blob Properties Updated.
 38        /// </summary>
 039        public static BlobChangeFeedEventType BlobPropertiesUpdated { get; } = new BlobChangeFeedEventType("BlobProperti
 40
 41        /// <summary>
 42        /// Blob Snapshot Created.
 43        /// </summary>
 044        public static BlobChangeFeedEventType BlobSnapshotCreated { get; } = new BlobChangeFeedEventType("BlobSnapshotCr
 45
 46        /// <summary>
 47        /// Control.
 48        /// </summary>
 049        public static BlobChangeFeedEventType Control { get; } = new BlobChangeFeedEventType("Control");
 50
 51        /// <summary>
 52        /// Blob Tier Changed.
 53        /// </summary>
 054        public static BlobChangeFeedEventType BlobTierChanged { get; } = new BlobChangeFeedEventType("BlobTierChanged");
 55
 56        /// <summary>
 57        /// Blob Async Operation Initiated.
 58        /// </summary>
 059        public static BlobChangeFeedEventType BlobAsyncOperationInitiated { get; } = new BlobChangeFeedEventType("BlobAs
 60
 61        ///<inheritdoc/>
 062        public static bool operator ==(BlobChangeFeedEventType left, BlobChangeFeedEventType right) => left.Equals(right
 63
 64        ///<inheritdoc/>
 065        public static bool operator !=(BlobChangeFeedEventType left, BlobChangeFeedEventType right) => !left.Equals(righ
 66
 67        ///<inheritdoc/>
 068        public static implicit operator BlobChangeFeedEventType(string value) => new BlobChangeFeedEventType(value);
 69
 70        ///<inheritdoc/>
 71        [EditorBrowsable(EditorBrowsableState.Never)]
 072        public override bool Equals(object obj) => obj is BlobChangeFeedEventType other && Equals(other);
 73
 74        ///<inheritdoc/>
 475        public bool Equals(BlobChangeFeedEventType other) => string.Equals(_value, other._value, StringComparison.Ordina
 76
 77        ///<inheritdoc/>
 78        [EditorBrowsable(EditorBrowsableState.Never)]
 079        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 80
 81        ///<inheritdoc/>
 60082        public override string ToString() => _value;
 83    }
 84}