< Summary

Class:Azure.Storage.Files.DataLake.DataLakeQueryErrorHandler
Assembly:Azure.Storage.Files.DataLake
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Files.DataLake\src\DataLakeQueryErrorHandler.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:24
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%100%
Handle(...)-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Files.DataLake\src\DataLakeQueryErrorHandler.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using System.Threading.Tasks;
 6using Azure.Storage.Blobs.Models;
 7using Azure.Storage.Files.DataLake.Models;
 8
 9namespace Azure.Storage.Files.DataLake
 10{
 11    internal class DataLakeQueryErrorHandler
 12    {
 13        private Action<DataLakeQueryError> _errorHandler;
 14
 015        public DataLakeQueryErrorHandler(Action<DataLakeQueryError> errorHandler)
 16        {
 017            _errorHandler = errorHandler;
 018        }
 19
 20        public void Handle(BlobQueryError blobQueryError)
 021            => _errorHandler(blobQueryError.ToDataLakeQueryError());
 22
 23    }
 24}

Methods/Properties

.ctor(...)
Handle(...)