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

Function TestAPIBatchEmptyObjects

tq/api_test.go:131–143  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

129}
130
131func TestAPIBatchEmptyObjects(t *testing.T) {
132 c, err := lfsapi.NewClient(nil)
133 require.Nil(t, err)
134
135 tqc := &tqClient{Client: c}
136 bReq := &batchRequest{
137 TransferAdapterNames: []string{"basic", "whatev"},
138 }
139 bRes, err := tqc.Batch("remote", bReq)
140 require.Nil(t, err)
141 assert.Equal(t, "", bRes.TransferAdapterName)
142 assert.Equal(t, 0, len(bRes.Objects))
143}
144
145var (
146 batchReqSchema *sourcedSchema

Callers

nothing calls this directly

Calls 3

BatchMethod · 0.95
NewClientFunction · 0.92
EqualMethod · 0.45

Tested by

no test coverage detected