< Summary

Class:Azure.AI.FormRecognizer.Models.SourcePath
Assembly:Azure.AI.FormRecognizer
File(s):C:\Git\azure-sdk-for-net\sdk\formrecognizer\Azure.AI.FormRecognizer\src\Generated\Models\SourcePath.cs
C:\Git\azure-sdk-for-net\sdk\formrecognizer\Azure.AI.FormRecognizer\src\Generated\Models\SourcePath.Serialization.cs
Covered lines:9
Uncovered lines:0
Coverable lines:9
Total lines:47
Line coverage:100% (9 of 9)
Covered branches:2
Total branches:2
Branch coverage:100% (2 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
get_Source()-100%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\formrecognizer\Azure.AI.FormRecognizer\src\Generated\Models\SourcePath.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
 8namespace Azure.AI.FormRecognizer.Models
 9{
 10    /// <summary> Uri or local path to source data. </summary>
 11    internal partial class SourcePath
 12    {
 13        /// <summary> Initializes a new instance of SourcePath. </summary>
 10814        public SourcePath()
 15        {
 10816        }
 17
 18        /// <summary> File source path. </summary>
 32419        public string Source { get; set; }
 20    }
 21}

C:\Git\azure-sdk-for-net\sdk\formrecognizer\Azure.AI.FormRecognizer\src\Generated\Models\SourcePath.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.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.AI.FormRecognizer.Models
 12{
 13    internal partial class SourcePath : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 10817            writer.WriteStartObject();
 10818            if (Optional.IsDefined(Source))
 19            {
 10820                writer.WritePropertyName("source");
 10821                writer.WriteStringValue(Source);
 22            }
 10823            writer.WriteEndObject();
 10824        }
 25    }
 26}