Skip to content
Merged

Dev #203

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected override IEnumerable<IRow> Produce()
{
using (var bufferMs = new MemoryStream(buffer))
{
using (var ds = new DeflateStream(bufferMs, CompressionMode.Decompress, leaveOpen: true))
using (var ds = new BrotliStream(bufferMs, CompressionMode.Decompress, leaveOpen: true))
{
ds.CopyTo(headerUncompressed);
}
Expand Down Expand Up @@ -103,7 +103,7 @@ protected override IEnumerable<IRow> Produce()
using (var ums = new MemoryStream())
{
using (var bufferMs = new MemoryStream(buffer))
using (var ds = new DeflateStream(bufferMs, CompressionMode.Decompress, leaveOpen: true))
using (var ds = new BrotliStream(bufferMs, CompressionMode.Decompress, leaveOpen: true))
ds.CopyTo(ums);

ums.Position = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private void WriteBuffer()

using (var targetMs = new MemoryStream())
{
using (var ds = new DeflateStream(targetMs, CompressionLevel.Fastest))
using (var ds = new BrotliStream(targetMs, new BrotliCompressionOptions() { Quality = 5 }))
{
_sinkEntry.Buffer.Position = 0;
_sinkEntry.Buffer.CopyTo(ds);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
global using System.Collections.Generic;
global using System.Data.Common;
global using System.Linq;
global using FizzCode.LightWeight;
global using Microsoft.VisualStudio.TestTools.UnitTesting;
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
namespace FizzCode.EtLast.Tests.Integration.Modules.AdoNetTests;

public class TestMethodIntegrationAttribute : TestMethodAttribute
{
public override TestResult[] Execute(ITestMethod testMethod)
namespace FizzCode.EtLast.Tests.Integration.Modules.AdoNetTests;
public class TestMethodIntegrationAttribute : TestMethodAttribute
{
public override TestResult[] Execute(ITestMethod testMethod)
{
#if INTEGRATION
return base.Execute(testMethod);
#else
return [new TestResult { Outcome = UnitTestOutcome.Inconclusive }];
#endif
}
#if INTEGRATION
return base.Execute(testMethod);
#else
return [new TestResult { Outcome = UnitTestOutcome.Inconclusive }];
#endif
}
}