< Summary

Class:Azure.Core.Pipeline.ReadOnlyStream
Assembly:Azure.Core
File(s):C:\Git\azure-sdk-for-net\sdk\core\Azure.Core\src\Pipeline\Internal\ReadOnlyStream.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:28
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_CanWrite()-0%100%
Write(...)-0%100%
SetLength(...)-0%100%
Flush()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\core\Azure.Core\src\Pipeline\Internal\ReadOnlyStream.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using System.IO;
 6
 7namespace Azure.Core.Pipeline
 8{
 9    internal abstract class ReadOnlyStream : Stream
 10    {
 011        public override bool CanWrite => false;
 12
 13        public override void Write(byte[] buffer, int offset, int count)
 14        {
 015            throw new NotSupportedException();
 16        }
 17
 18        public override void SetLength(long value)
 19        {
 020            throw new NotSupportedException();
 21        }
 22
 23        public override void Flush()
 24        {
 25            // Flush is allowed on read-only stream
 026        }
 27    }
 28}