MCPcopy Create free account
hub / github.com/apache/devlake / TestUnicodeToZh

Function TestUnicodeToZh

backend/plugins/tapd/tasks/shared_test.go:194–204  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

192}
193
194func TestUnicodeToZh(t *testing.T) {
195 input := "\\u4e2d\\u6587"
196 expected := "中文"
197 output, err := unicodeToZh(input)
198 if err != nil {
199 t.Errorf("unicodeToZh(%q) returned error %v", input, err)
200 }
201 if output != expected {
202 t.Errorf("unicodeToZh(%q) = %q, want %q", input, output, expected)
203 }
204}
205
206func TestConvertUnicode(t *testing.T) {
207 testStruct := struct {

Callers

nothing calls this directly

Calls 1

unicodeToZhFunction · 0.85

Tested by

no test coverage detected