< Summary

Class:Azure.Data.Tables.TableClientOptions
Assembly:Azure.Data.Tables
File(s):C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\TableClientOptions.cs
Covered lines:7
Uncovered lines:2
Coverable lines:9
Total lines:32
Line coverage:77.7% (7 of 9)
Covered branches:1
Total branches:2
Branch coverage:50% (1 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_Default()-0%100%
.ctor(...)-85.71%50%
get_VersionString()-100%100%

File(s)

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

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using Azure.Core;
 6
 7namespace Azure.Data.Tables
 8{
 9    public class TableClientOptions : ClientOptions
 10    {
 11        private const ServiceVersion Latest = ServiceVersion.V2019_02_02;
 012        internal static TableClientOptions Default { get; } = new TableClientOptions();
 13
 49614        public TableClientOptions(ServiceVersion serviceVersion = Latest)
 15        {
 49616            VersionString = serviceVersion switch
 49617            {
 99218                ServiceVersion.V2019_02_02 => "2019-02-02",
 019                _ => throw new ArgumentOutOfRangeException(nameof(serviceVersion))
 49620            };
 49621        }
 22
 49623        internal string VersionString { get; }
 24
 25        public enum ServiceVersion
 26        {
 27#pragma warning disable CA1707
 28            V2019_02_02 = 1
 29#pragma warning restore CA1707
 30        }
 31    }
 32}