(t *testing.T)
| 169 | } |
| 170 | |
| 171 | func TestDecodeFromEmptyReader(t *testing.T) { |
| 172 | p, buf, err := DecodeFrom(strings.NewReader("")) |
| 173 | by, _ := io.ReadAll(buf) |
| 174 | |
| 175 | assert.Nil(t, err) |
| 176 | assert.Equal(t, p.Oid, "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855") |
| 177 | assert.Equal(t, p.Size, int64(0)) |
| 178 | assert.Empty(t, by) |
| 179 | } |
| 180 | |
| 181 | func TestDecodeCanonical(t *testing.T) { |
| 182 | canonicalExamples := []string{ |
nothing calls this directly
no test coverage detected