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

Function TestEncodeEmpty

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

Source from the content-addressed store, hash-verified

31}
32
33func TestEncodeEmpty(t *testing.T) {
34 var buf bytes.Buffer
35 pointer := NewPointer("", 0, nil)
36 _, err := EncodePointer(&buf, pointer)
37 assert.Equal(t, nil, err)
38
39 bufReader := bufio.NewReader(&buf)
40 val, err := bufReader.ReadString('\n')
41 assert.Equal(t, "", val)
42 assert.Equal(t, "EOF", err.Error())
43}
44
45func TestEncodeExtensions(t *testing.T) {
46 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 4

NewPointerFunction · 0.85
EncodePointerFunction · 0.85
ErrorMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected