< Summary

Class:Azure.Storage.Blobs.Models.FilterBlobsAsyncCollection
Assembly:Azure.Storage.Blobs
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Blobs\src\Models\FilterBlobsAsyncCollection.cs
Covered lines:18
Uncovered lines:0
Coverable lines:18
Total lines:44
Line coverage:100% (18 of 18)
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.Blobs\src\Models\FilterBlobsAsyncCollection.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4#pragma warning disable SA1402  // File may only contain a single type
 5
 6using System.Threading;
 7using System.Threading.Tasks;
 8
 9namespace Azure.Storage.Blobs.Models
 10{
 11    internal class FilterBlobsAsyncCollection : StorageCollectionEnumerator<TaggedBlobItem>
 12    {
 13        private readonly BlobServiceClient _client;
 14        private readonly string _expression;
 15
 1616        public FilterBlobsAsyncCollection(
 1617            BlobServiceClient client,
 1618            string expression)
 19        {
 1620            _client = client;
 1621            _expression = expression;
 1622        }
 23
 24        public override async ValueTask<Page<TaggedBlobItem>> GetNextPageAsync(
 25            string continuationToken,
 26            int? pageSizeHint,
 27            bool async,
 28            CancellationToken cancellationToken)
 29        {
 1630            Response<FilterBlobSegment> response = await _client.FindBlobsByTagsInternal(
 1631                marker: continuationToken,
 1632                expression: _expression,
 1633                pageSizeHint: pageSizeHint,
 1634                async: async,
 1635                cancellationToken: cancellationToken)
 1636                .ConfigureAwait(false);
 37
 1238            return Page<TaggedBlobItem>.FromValues(
 1239                response.Value.Blobs.ToBlobTagItems(),
 1240                response.Value.NextMarker,
 1241                response.GetRawResponse());
 1242        }
 43    }
 44}

Methods/Properties

.ctor(...)
GetNextPageAsync()