mirror of
https://github.com/YuzuZensai/TrollSSH.git
synced 2026-09-13 15:59:03 +00:00
11 lines
214 B
Go
11 lines
214 B
Go
package logx
|
|
|
|
import "testing"
|
|
|
|
func TestSanitizeNStopsAtLimit(t *testing.T) {
|
|
input := "ab\x00cdefghijklmnopqrstuvwxyz"
|
|
if got := SanitizeN(input, 4); got != "ab�c…" {
|
|
t.Fatalf("SanitizeN = %q", got)
|
|
}
|
|
}
|