< Summary

Class:Azure.Security.KeyVault.Extensions
Assembly:Azure.Security.KeyVault.Keys
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Shared\src\Extensions.cs
Covered lines:1
Uncovered lines:0
Coverable lines:1
Total lines:12
Line coverage:100% (1 of 1)
Covered branches:2
Total branches:2
Branch coverage:100% (2 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
IsNullOrEmpty(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Shared\src\Extensions.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Collections.Generic;
 5
 6namespace Azure.Security.KeyVault
 7{
 8    internal static partial class Extensions
 9    {
 78410        public static bool IsNullOrEmpty<T>(this ICollection<T> source) => source is null || source.Count == 0;
 11    }
 12}

Methods/Properties

IsNullOrEmpty(...)