common/uuid: fix panic when parsing 32-len invalid UUID string. (#5468)

* common/uuid: fix panic when parsing 32-len invalid UUID string.

* fix: removed typo
This commit is contained in:
ari-ahm
2025-12-26 23:47:24 +03:30
committed by GitHub
parent 36968909a1
commit 6738ecf68e
3 changed files with 11 additions and 2 deletions
+5
View File
@@ -44,6 +44,11 @@ func TestParseString(t *testing.T) {
if err == nil {
t.Fatal("Expect error but nil")
}
_, err = ParseString("2418d087-648d-4990-86e8-19dca1d0")
if err == nil {
t.Fatal("Expect error but nil")
}
}
func TestNewUUID(t *testing.T) {