< Summary

Class:Microsoft.Azure.Search.Models.DataTypeExtensions
Assembly:Microsoft.Azure.Search.Service
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Customizations\Indexes\Models\DataTypeExtensions.cs
Covered lines:1
Uncovered lines:0
Coverable lines:1
Total lines:22
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
IsComplex(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Customizations\Indexes\Models\DataTypeExtensions.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License. See License.txt in the project root for
 3// license information.
 4
 5namespace Microsoft.Azure.Search.Models
 6{
 7    /// <summary>
 8    /// Defines extension methods for <c cref="DataType">DataType</c>.
 9    /// </summary>
 10    public static class DataTypeExtensions
 11    {
 12        /// <summary>
 13        /// Indicates whether or not the given data type is a complex type.
 14        /// </summary>
 15        /// <param name="dataType">The data type to check.</param>
 16        /// <returns>
 17        /// <c>true</c> if the type represents a complex object or collection of complex objects; <c>false</c> otherwise
 18        /// </returns>
 19        public static bool IsComplex(this DataType dataType) =>
 8624220            dataType == DataType.Complex || dataType == DataType.Collection(DataType.Complex);
 21    }
 22}

Methods/Properties

IsComplex(...)