< Summary

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

Metrics

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

File(s)

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

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Linq;
 5using System.Threading;
 6using System.Threading.Tasks;
 7
 8namespace Azure.Storage.Files.DataLake.Models
 9{
 10    internal class GetPathsAsyncCollection : StorageCollectionEnumerator<PathItem>
 11    {
 12        private readonly DataLakeFileSystemClient _client;
 13        private readonly string _path;
 14        private readonly bool _recursive;
 15        private readonly bool _upn;
 16
 15417        public GetPathsAsyncCollection(
 15418            DataLakeFileSystemClient client,
 15419            string path,
 15420            bool recursive,
 15421            bool upn)
 22        {
 15423            _client = client;
 15424            _path = path;
 15425            _recursive = recursive;
 15426            _upn = upn;
 15427        }
 28
 29        public override async ValueTask<Page<PathItem>> GetNextPageAsync(
 30            string continuationToken,
 31            int? pageSizeHint,
 32            bool async,
 33            CancellationToken cancellationToken)
 34        {
 15435            Response<PathSegment> response = await _client.GetPathsInternal(
 15436                _path,
 15437                _recursive,
 15438                _upn,
 15439                continuationToken,
 15440                pageSizeHint,
 15441                async,
 15442                cancellationToken).ConfigureAwait(false);
 43
 15044            return Page<PathItem>.FromValues(
 15045                response.Value.Paths.ToArray(),
 15046                response.Value.Continuation,
 15047                response.GetRawResponse());
 15048        }
 49    }
 50}

Methods/Properties

.ctor(...)
GetNextPageAsync()