(t *testing.T)
| 7 | import "testing" |
| 8 | |
| 9 | func TestString(t *testing.T) { |
| 10 | for _, c := range []struct { |
| 11 | in, want string |
| 12 | }{ |
| 13 | {"Hello, world", "dlrow ,olleH"}, |
| 14 | {"Hello, 世界", "界世 ,olleH"}, |
| 15 | {"", ""}, |
| 16 | } { |
| 17 | got := String(c.in) |
| 18 | if got != c.want { |
| 19 | t.Errorf("String(%q) == %q, want %q", c.in, got, c.want) |
| 20 | } |
| 21 | } |
| 22 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…