(t *testing.T)
| 651 | } |
| 652 | |
| 653 | func TestDecoderStringDecoderAPI(t *testing.T) { |
| 654 | var v string |
| 655 | dec := NewDecoder(strings.NewReader(`"hello world!"`)) |
| 656 | defer dec.Release() |
| 657 | err := dec.DecodeString(&v) |
| 658 | assert.Nil(t, err, "Err must be nil") |
| 659 | assert.Equal(t, "hello world!", v, "v must be equal to 'hello world!'") |
| 660 | } |
| 661 | |
| 662 | func TestDecoderStringPoolError(t *testing.T) { |
| 663 | // reset the pool to make sure it's not full |
nothing calls this directly
no test coverage detected
searching dependent graphs…