mirror of
https://github.com/YuzuZensai/TrollSSH.git
synced 2026-09-13 17:49:03 +00:00
♻️ refactor: split src into internal packages and cmd
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user