< Summary

Class:Azure.Search.Documents.Indexes.Models.CjkBigramTokenFilterScriptsExtensions
Assembly:Azure.Search.Documents
File(s):C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\CjkBigramTokenFilterScripts.Serialization.cs
Covered lines:0
Uncovered lines:13
Coverable lines:13
Total lines:32
Line coverage:0% (0 of 13)
Covered branches:0
Total branches:13
Branch coverage:0% (0 of 13)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
ToSerialString(...)-0%0%
ToCjkBigramTokenFilterScripts(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\CjkBigramTokenFilterScripts.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9
 10namespace Azure.Search.Documents.Indexes.Models
 11{
 12    internal static class CjkBigramTokenFilterScriptsExtensions
 13    {
 014        public static string ToSerialString(this CjkBigramTokenFilterScripts value) => value switch
 015        {
 016            CjkBigramTokenFilterScripts.Han => "han",
 017            CjkBigramTokenFilterScripts.Hiragana => "hiragana",
 018            CjkBigramTokenFilterScripts.Katakana => "katakana",
 019            CjkBigramTokenFilterScripts.Hangul => "hangul",
 020            _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CjkBigramTokenFilterScripts value.
 021        };
 22
 23        public static CjkBigramTokenFilterScripts ToCjkBigramTokenFilterScripts(this string value)
 24        {
 025            if (string.Equals(value, "han", StringComparison.InvariantCultureIgnoreCase)) return CjkBigramTokenFilterScr
 026            if (string.Equals(value, "hiragana", StringComparison.InvariantCultureIgnoreCase)) return CjkBigramTokenFilt
 027            if (string.Equals(value, "katakana", StringComparison.InvariantCultureIgnoreCase)) return CjkBigramTokenFilt
 028            if (string.Equals(value, "hangul", StringComparison.InvariantCultureIgnoreCase)) return CjkBigramTokenFilter
 029            throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CjkBigramTokenFilterScripts value.");
 30        }
 31    }
 32}