From 6df2566acbbf668ed2dafabddfaef8b52236dead Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 14:02:58 +0100 Subject: [PATCH] ax(ueps): include method name in sentinelError test names TestFilename_Function_{Good,Bad,Ugly} requires the function being tested, not just the type name. sentinelError tests exercise the .Error() method so names must be TestPacket_sentinelError_Error_*. Co-Authored-By: Charon --- pkg/ueps/packet_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/ueps/packet_test.go b/pkg/ueps/packet_test.go index 4be8669..2b15a54 100644 --- a/pkg/ueps/packet_test.go +++ b/pkg/ueps/packet_test.go @@ -208,7 +208,7 @@ func TestPacket_writeTLV_Ugly(t *testing.T) { } // var sentinel sentinelError = "record not found"; sentinel.Error() == "record not found" -func TestPacket_sentinelError_Good(t *testing.T) { +func TestPacket_sentinelError_Error_Good(t *testing.T) { sentinel := sentinelError("record not found") if sentinel.Error() != "record not found" { @@ -217,7 +217,7 @@ func TestPacket_sentinelError_Good(t *testing.T) { } // var sentinel sentinelError = ""; sentinel.Error() == "" (empty message is valid sentinel) -func TestPacket_sentinelError_Bad(t *testing.T) { +func TestPacket_sentinelError_Error_Bad(t *testing.T) { sentinel := sentinelError("") if sentinel.Error() != "" { @@ -226,7 +226,7 @@ func TestPacket_sentinelError_Bad(t *testing.T) { } // var sentinelFirst, sentinelSecond sentinelError = "x", "x"; sentinelFirst == sentinelSecond (sentinel identity: same message = same error) -func TestPacket_sentinelError_Ugly(t *testing.T) { +func TestPacket_sentinelError_Error_Ugly(t *testing.T) { sentinelFirst := sentinelError("integrity violation") sentinelSecond := sentinelError("integrity violation")