Formats code comments as sentences in the tests.

Capitalizes the first word and adds the terminal period in the unit, integration and security tests. The AAA markers stay bare, the TODO bodies stay lowercase, and no assertion, payload, expected status code or test signature changes.
This commit is contained in:
BinaryAlley committed 2026-11-16 18:17:29 +02:00
1 parent 727aa33318
commit 057f557791
540 files changed
+3888 -3888

No files matched your search

@@ -12,10 +12,10 @@ namespace Lumina.Plugins.CoverArtArchive.UnitTests.Core;
public class CoverArtArchiveHostsTests
{
[Theory]
[InlineData("coverartarchive.org")] // the Cover Art Archive host
[InlineData("archive.org")] // the Internet Archive host
[InlineData("ia800100.us.archive.org")] // a subdomain of the Internet Archive that serves its downloads
[InlineData("media.coverartarchive.org")] // a subdomain of the Cover Art Archive
[InlineData("coverartarchive.org")] // The Cover Art Archive host.
[InlineData("archive.org")] // The Internet Archive host.
[InlineData("ia800100.us.archive.org")] // A subdomain of the Internet Archive that serves its downloads.
[InlineData("media.coverartarchive.org")] // A subdomain of the Cover Art Archive.
public void IsAllowed_WhenTheHostIsATrustedArchiveHost_ShouldReturnTrue(string host)
{
// Act
@@ -26,8 +26,8 @@ public class CoverArtArchiveHostsTests
}
[Theory]
[InlineData("COVERARTARCHIVE.ORG")] // the Cover Art Archive host, upper cased
[InlineData("Archive.Org")] // the Internet Archive host, mixed cased
[InlineData("COVERARTARCHIVE.ORG")] // The Cover Art Archive host, upper cased.
[InlineData("Archive.Org")] // The Internet Archive host, mixed cased.
public void IsAllowed_WhenTheHostDiffersOnlyByCase_ShouldReturnTrue(string host)
{
// Act
@@ -38,18 +38,18 @@ public class CoverArtArchiveHostsTests
}
[Theory]
[InlineData("")] // an empty host
[InlineData(" ")] // only white space
[InlineData("localhost")] // the loopback host name
[InlineData("127.0.0.1")] // the IPv4 loopback address
[InlineData("169.254.169.254")] // the link local cloud metadata endpoint
[InlineData("10.0.0.5")] // a private class A address
[InlineData("192.168.1.10")] // a private class C address
[InlineData("evil.example")] // an unrelated public host
[InlineData("coverartarchive.org.evil.example")] // the trusted host used as a prefix of an attacker controlled host
[InlineData("archive.org.evil.example")] // the Internet Archive host used as a prefix of an attacker controlled host
[InlineData("notcoverartarchive.org")] // a suffix collision that is not a subdomain
[InlineData("notarchive.org")] // a suffix collision that is not a subdomain
[InlineData("")] // An empty host.
[InlineData(" ")] // Only white space.
[InlineData("localhost")] // The loopback host name.
[InlineData("127.0.0.1")] // The IPv4 loopback address.
[InlineData("169.254.169.254")] // The link local cloud metadata endpoint.
[InlineData("10.0.0.5")] // A private class A address.
[InlineData("192.168.1.10")] // A private class C address.
[InlineData("evil.example")] // An unrelated public host.
[InlineData("coverartarchive.org.evil.example")] // The trusted host used as a prefix of an attacker controlled host.
[InlineData("archive.org.evil.example")] // The Internet Archive host used as a prefix of an attacker controlled host.
[InlineData("notcoverartarchive.org")] // A suffix collision that is not a subdomain.
[InlineData("notarchive.org")] // A suffix collision that is not a subdomain.
public void IsAllowed_WhenTheHostIsNotATrustedArchiveHost_ShouldReturnFalse(string host)
{
// Act