(t *testing.T)
| 504 | } |
| 505 | |
| 506 | func TestReadBoolSliceWrappedBuffer(t *testing.T) { |
| 507 | arrayBytes := NewByteBuffer(nil) |
| 508 | WriteBoolSlice(arrayBytes, []bool{true, false}) |
| 509 | |
| 510 | err := &Error{} |
| 511 | result := ReadBoolSlice(NewByteBuffer(arrayBytes.Bytes()), err) |
| 512 | |
| 513 | assert.False(t, err.HasError(), "Expected wrapped buffer reads to use serialized array bytes") |
| 514 | assert.Equal(t, []bool{true, false}, result) |
| 515 | } |
nothing calls this directly
no test coverage detected