< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 29
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 4
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%110%
Equals(...)0%220%
Equals(...)0%220%
GetHashCode()100%110%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/Ecma335/EditAndContinueLogEntry.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System.Diagnostics.CodeAnalysis;
 5
 6namespace System.Reflection.Metadata.Ecma335
 7{
 8    public readonly struct EditAndContinueLogEntry : IEquatable<EditAndContinueLogEntry>
 9    {
 010        public EntityHandle Handle { get; }
 011        public EditAndContinueOperation Operation { get; }
 12
 13        public EditAndContinueLogEntry(EntityHandle handle, EditAndContinueOperation operation)
 014        {
 015            Handle = handle;
 016            Operation = operation;
 017        }
 18
 19        public override bool Equals([NotNullWhen(true)] object? obj) =>
 020            obj is EditAndContinueLogEntry editAndContinue && Equals(editAndContinue);
 21
 22        public bool Equals(EditAndContinueLogEntry other) =>
 023            Operation == other.Operation && Handle == other.Handle;
 24
 25        public override int GetHashCode() =>
 026            (int)Operation ^ Handle.GetHashCode();
 27    }
 28}
 29