Skip to content

Commit 3f96b1e

Browse files
authored
Merge pull request #1688 from SixLabors/bp/serialtests
Run some high memory tests serial
2 parents e8d39b8 + 91ff891 commit 3f96b1e

File tree

13 files changed

+14
-2
lines changed

13 files changed

+14
-2
lines changed

src/ImageSharp/Formats/Jpeg/Components/Encoder/YCbCrForwardConverter{TPixel}.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ internal static class YCbCrForwardConverter<TPixel>
1313
{
1414
public static void LoadAndStretchEdges(RowOctet<TPixel> source, Span<TPixel> dest, Point start, Size sampleSize, Size totalSize)
1515
{
16-
DebugGuard.MustBeBetweenOrEqualTo(start.X, 1, totalSize.Width - 1, nameof(start.X));
17-
DebugGuard.MustBeBetweenOrEqualTo(start.Y, 1, totalSize.Height - 1, nameof(start.Y));
16+
DebugGuard.MustBeBetweenOrEqualTo(start.X, 0, totalSize.Width - 1, nameof(start.X));
17+
DebugGuard.MustBeBetweenOrEqualTo(start.Y, 0, totalSize.Height - 1, nameof(start.Y));
1818

1919
int width = Math.Min(sampleSize.Width, totalSize.Width - start.X);
2020
int height = Math.Min(sampleSize.Height, totalSize.Height - start.Y);

tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
// ReSharper disable InconsistentNaming
2121
namespace SixLabors.ImageSharp.Tests.Formats.Bmp
2222
{
23+
[Collection("RunSerial")]
2324
[Trait("Format", "Bmp")]
2425
public class BmpDecoderTests
2526
{

tests/ImageSharp.Tests/Formats/Bmp/BmpEncoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
// ReSharper disable InconsistentNaming
2020
namespace SixLabors.ImageSharp.Tests.Formats.Bmp
2121
{
22+
[Collection("RunSerial")]
2223
[Trait("Format", "Bmp")]
2324
public class BmpEncoderTests
2425
{

tests/ImageSharp.Tests/Formats/Gif/GifDecoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// ReSharper disable InconsistentNaming
1818
namespace SixLabors.ImageSharp.Tests.Formats.Gif
1919
{
20+
[Collection("RunSerial")]
2021
[Trait("Format", "Gif")]
2122
public class GifDecoderTests
2223
{

tests/ImageSharp.Tests/Formats/Gif/GifEncoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// ReSharper disable InconsistentNaming
1515
namespace SixLabors.ImageSharp.Tests.Formats.Gif
1616
{
17+
[Collection("RunSerial")]
1718
[Trait("Format", "Gif")]
1819
public class GifEncoderTests
1920
{

tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
2323
{
2424
// TODO: Scatter test cases into multiple test classes
25+
[Collection("RunSerial")]
2526
[Trait("Format", "Jpg")]
2627
public partial class JpegDecoderTests
2728
{

tests/ImageSharp.Tests/Formats/Jpg/JpegEncoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
2222
{
23+
[Collection("RunSerial")]
2324
[Trait("Format", "Jpg")]
2425
public class JpegEncoderTests
2526
{

tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// ReSharper disable InconsistentNaming
1717
namespace SixLabors.ImageSharp.Tests.Formats.Png
1818
{
19+
[Collection("RunSerial")]
1920
[Trait("Format", "Png")]
2021
public partial class PngDecoderTests
2122
{

tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
namespace SixLabors.ImageSharp.Tests.Formats.Png
1717
{
18+
[Collection("RunSerial")]
1819
[Trait("Format", "Png")]
1920
public partial class PngEncoderTests
2021
{

tests/ImageSharp.Tests/Formats/Tga/TgaDecoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// ReSharper disable InconsistentNaming
1717
namespace SixLabors.ImageSharp.Tests.Formats.Tga
1818
{
19+
[Collection("RunSerial")]
1920
[Trait("Format", "Tga")]
2021
public class TgaDecoderTests
2122
{

0 commit comments

Comments
 (0)