Skip to content

Commit

Permalink
Merge pull request #203 from FizzCodeSoftware/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
wickedmachinator authored Nov 18, 2024
2 parents c94738e + 6254af3 commit 1cbc745
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
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
}
}

0 comments on commit 1cbc745

Please sign in to comment.