Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 7ac1f5f

Browse files
committed
Add test for masking unicode characters
1 parent 7d596bc commit 7ac1f5f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

internals/cli/masker/masker_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,16 @@ func TestMasker(t *testing.T) {
134134
},
135135
expected: string(randomIn),
136136
},
137+
"masking unicode": {
138+
maskStrings: []string{
139+
"ⓗⓔⓛⓛⓞ",
140+
},
141+
inputFunc: func(w io.Writer) {
142+
_, err := w.Write([]byte("ⓗⓔⓛⓛⓞ world"))
143+
assert.OK(t, err)
144+
},
145+
expected: maskString + " world",
146+
},
137147
}
138148

139149
for name, tc := range tests {

0 commit comments

Comments
 (0)