MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / TestDecodeFromEmptyReader

Function TestDecodeFromEmptyReader

lfs/pointer_test.go:171–179  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

169}
170
171func 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
181func TestDecodeCanonical(t *testing.T) {
182 canonicalExamples := []string{

Callers

nothing calls this directly

Calls 2

DecodeFromFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected