< Summary

Class:Azure.Data.AppConfiguration.SyncToken
Assembly:Azure.Data.AppConfiguration
File(s):C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.Data.AppConfiguration\src\SyncToken.cs
Covered lines:8
Uncovered lines:0
Coverable lines:8
Total lines:38
Line coverage:100% (8 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_Id()-100%100%
get_Value()-100%100%
get_SequenceNumber()-100%100%
.ctor(...)-100%100%
ToString()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.Data.AppConfiguration\src\SyncToken.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4namespace Azure.Data.AppConfiguration
 5{
 6    internal readonly struct SyncToken
 7    {
 8        /// <summary>
 9        /// The token's ID.
 10        /// </summary>
 110811        public string Id { get; }
 12
 13        /// <summary>
 14        /// The token's value.
 15        /// </summary>
 48816        public string Value { get; }
 17
 18        /// <summary>
 19        /// Token sequence number (version). Higher means newer version of the same token.
 20        /// </summary>
 83621        public long SequenceNumber { get; }
 22
 23        public SyncToken(string id, string value, long sequenceNumber)
 24        {
 62425            Id = id;
 62426            Value = value;
 62427            SequenceNumber = sequenceNumber;
 62428        }
 29
 30        /// <summary>
 31        /// Creates a string representation of a <see cref="SyncToken"/>.
 32        /// </summary>
 33        public override string ToString()
 34        {
 48435            return $"{Id}={Value}";
 36        }
 37    }
 38}