(t *testing.T)
| 334 | } |
| 335 | |
| 336 | func TestBytes2String_String2Bytes(t *testing.T) { |
| 337 | orig := "hello world" |
| 338 | b := String2Bytes(orig) |
| 339 | s := Bytes2String(b) |
| 340 | if s != orig { |
| 341 | t.Errorf("roundtrip: got %q, want %q", s, orig) |
| 342 | } |
| 343 | orig2 := []byte("foo bar") |
| 344 | s2 := Bytes2String(orig2) |
| 345 | b2 := String2Bytes(s2) |
| 346 | if string(b2) != string(orig2) { |
| 347 | t.Errorf("roundtrip bytes: got %q, want %q", b2, orig2) |
| 348 | } |
| 349 | } |
| 350 | |
| 351 | func TestKeyinsParse(t *testing.T) { |
| 352 | tests := []struct { |
nothing calls this directly
no test coverage detected