From 0ea181d62c8cf3246ff30ae5255ed5316f63095d Mon Sep 17 00:00:00 2001 From: ttossavainen Date: Wed, 22 Feb 2023 10:29:01 +0200 Subject: [PATCH] init --- .../Frends.AmazonS3.DeleteObject/DeleteObject.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Frends.AmazonS3.DeleteObject/Frends.AmazonS3.DeleteObject/DeleteObject.cs b/Frends.AmazonS3.DeleteObject/Frends.AmazonS3.DeleteObject/DeleteObject.cs index f2f24ad..d20ad96 100644 --- a/Frends.AmazonS3.DeleteObject/Frends.AmazonS3.DeleteObject/DeleteObject.cs +++ b/Frends.AmazonS3.DeleteObject/Frends.AmazonS3.DeleteObject/DeleteObject.cs @@ -10,6 +10,7 @@ using System.Runtime.Loader; using System.Collections.Generic; using Amazon.Runtime; +using System.Diagnostics.CodeAnalysis; namespace Frends.AmazonS3.DeleteObject; @@ -120,6 +121,8 @@ private static async Task FileExistsInS3(AmazonS3Client client, string buc return (response != null && response.S3Objects != null && response.S3Objects.Count > 0); } + // Excluded because there's no way to unit test each of these regions in all cases. + [ExcludeFromCodeCoverage] private static RegionEndpoint RegionSelection(Region region) { return region switch