< Summary

Class:Azure.Data.Tables.Queryable.ReferenceEqualityComparer
Assembly:Azure.Data.Tables
File(s):C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Queryable\ReferenceEqualityComparer.cs
Covered lines:2
Uncovered lines:4
Coverable lines:6
Total lines:29
Line coverage:33.3% (2 of 6)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
System.Collections.IEqualityComparer.Equals(...)-0%100%
System.Collections.IEqualityComparer.GetHashCode(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Queryable\ReferenceEqualityComparer.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Collections;
 5
 6namespace Azure.Data.Tables.Queryable
 7{
 8    internal class ReferenceEqualityComparer : IEqualityComparer
 9    {
 210        protected ReferenceEqualityComparer()
 11        {
 212        }
 13
 14        bool IEqualityComparer.Equals(object x, object y)
 15        {
 016            return object.ReferenceEquals(x, y);
 17        }
 18
 19        int IEqualityComparer.GetHashCode(object obj)
 20        {
 021            if (obj == null)
 22            {
 023                return 0;
 24            }
 25
 026            return obj.GetHashCode();
 27        }
 28    }
 29}