< Summary

Class:Azure.AI.FormRecognizer.ServiceTrainCustomModelAsyncHeaders
Assembly:Azure.AI.FormRecognizer
File(s):C:\Git\azure-sdk-for-net\sdk\formrecognizer\Azure.AI.FormRecognizer\src\Generated\ServiceTrainCustomModelAsyncHeaders.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:23
Line coverage:100% (4 of 4)
Covered branches:1
Total branches:2
Branch coverage:50% (1 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_Location()-100%50%

File(s)

C:\Git\azure-sdk-for-net\sdk\formrecognizer\Azure.AI.FormRecognizer\src\Generated\ServiceTrainCustomModelAsyncHeaders.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 Azure;
 9using Azure.Core;
 10
 11namespace Azure.AI.FormRecognizer
 12{
 13    internal class ServiceTrainCustomModelAsyncHeaders
 14    {
 15        private readonly Response _response;
 14816        public ServiceTrainCustomModelAsyncHeaders(Response response)
 17        {
 14818            _response = response;
 14819        }
 20        /// <summary> Location and ID of the model being trained. The status of model training is specified in the statu
 14821        public string Location => _response.Headers.TryGetValue("Location", out string value) ? value : null;
 22    }
 23}

Methods/Properties

.ctor(...)
get_Location()