.
This commit is contained in:
@@ -4,6 +4,7 @@ import "testing"
|
||||
|
||||
// Make sure NULL bytes are removed
|
||||
func TestEnsureValidUTF8(t *testing.T) {
|
||||
t.Parallel()
|
||||
// Create a string with a null byte
|
||||
strWithNull := "Hello" + string('\x00') + "world"
|
||||
result, _ := BytesToValidUTF8([]byte(strWithNull))
|
||||
|
||||
Reference in New Issue
Block a user