< Summary

Class:Azure.Storage.Blobs.ChangeFeed.AvroReaderFactory
Assembly:Azure.Storage.Blobs.ChangeFeed
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Blobs.ChangeFeed\src\AvroReaderFactory.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:29
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
BuildAvroReader(...)-100%100%
BuildAvroReader(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Blobs.ChangeFeed\src\AvroReaderFactory.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.IO;
 5using Azure.Storage.Internal.Avro;
 6
 7namespace Azure.Storage.Blobs.ChangeFeed
 8{
 9    /// <summary>
 10    /// Creates AvroReaders.  Allows us to inject mock AvroReaders in
 11    /// the Chunk unit tests.
 12    /// </summary>
 13    internal class AvroReaderFactory
 14    {
 15        public virtual AvroReader BuildAvroReader(Stream dataStream)
 16816            => new AvroReader(dataStream);
 17
 18        public virtual AvroReader BuildAvroReader(
 19            Stream dataStream,
 20            Stream headStream,
 21            long blockOffset,
 22            long eventIndex)
 4823            => new AvroReader(
 4824                dataStream,
 4825                headStream,
 4826                blockOffset,
 4827                eventIndex);
 28    }
 29}