Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

test(common): drop duplicated doc comments in the relocated UTF-8 tests (#21411)

Danny Xu922445f1f3af
diff --git a/backend/common/util_test.go b/backend/common/util_test.go
index d4656c06cb..b2be826aef 100644
--- a/backend/common/util_test.go
+++ b/backend/common/util_test.go
@@ -344,9 +344,6 @@ func fillAllStringFields(m protoreflect.Message, value string, depth int) {
}
}
-// countInvalidStringFields walks m and returns how many string values
-// (fields, list elements, map keys and values) hold invalid UTF-8.
-
// countInvalidStringFields walks m and returns how many string values
// (fields, list elements, map keys and values) hold invalid UTF-8.
func countInvalidStringFields(m protoreflect.Message) int {
@@ -395,12 +392,6 @@ func countInvalidStringFields(m protoreflect.Message) int {
return count
}
-// TestSanitizeUTF8MessageCoversEveryStringField proves the BYT-9916 fix
-// covers every string field of the database metadata — names, types,
-// defaults, definitions — not just comments: fill each one with the raw-GBK
-// shape go-ora leaks for values ending in a dangling lead byte, then assert
-// sanitization leaves zero invalid strings and proto marshaling succeeds.
-
// TestSanitizeUTF8MessageCoversEveryStringField proves the BYT-9916 fix
// covers every string field of the database metadata — names, types,
// defaults, definitions — not just comments: fill each one with the raw-GBK
@@ -431,10 +422,6 @@ func TestSanitizeUTF8MessageCoversEveryStringField(t *testing.T) {
require.NoError(t, err)
}
-// TestSanitizeUTF8MessageNameFields pins the customer-visible BYT-9916 shape:
-// object names (schema/table/column) carrying raw GBK bytes must marshal
-// after sanitization, and valid names must pass through untouched.
-
// TestSanitizeUTF8MessageNameFields pins the customer-visible BYT-9916 shape:
// object names (schema/table/column) carrying raw GBK bytes must marshal
// after sanitization, and valid names must pass through untouched.