< Summary

Class:Azure.Storage.Queues.Models.GetQueuesAsyncCollection
Assembly:Azure.Storage.Queues
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Queues\src\Models\GetQueuesAsyncCollection.cs
Covered lines:20
Uncovered lines:0
Coverable lines:20
Total lines:47
Line coverage:100% (20 of 20)
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.Queues\src\Models\GetQueuesAsyncCollection.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;
 7using Azure.Core.Pipeline;
 8
 9namespace Azure.Storage.Queues.Models
 10{
 11    internal class GetQueuesAsyncCollection : StorageCollectionEnumerator<QueueItem>
 12    {
 13        private readonly QueueServiceClient _client;
 14        private readonly QueueTraits _traits;
 15        private readonly string _prefix;
 16
 3817        public GetQueuesAsyncCollection(
 3818            QueueServiceClient client,
 3819            QueueTraits traits,
 3820            string prefix)
 21        {
 3822            _client = client;
 3823            _traits = traits;
 3824            _prefix = prefix;
 3825        }
 26
 27        public override async ValueTask<Page<QueueItem>> GetNextPageAsync(
 28            string continuationToken,
 29            int? pageSizeHint,
 30            bool async,
 31            CancellationToken cancellationToken)
 32        {
 3833            Response<QueuesSegment> response = await _client.GetQueuesInternal(
 3834                continuationToken,
 3835                _traits,
 3836                _prefix,
 3837                pageSizeHint,
 3838                async,
 3839                cancellationToken).ConfigureAwait(false);
 40
 3641            return Page<QueueItem>.FromValues(
 3642                response.Value.QueueItems.ToArray(),
 3643                response.Value.NextMarker,
 3644                response.GetRawResponse());
 3645        }
 46    }
 47}

Methods/Properties

.ctor(...)
GetNextPageAsync()