MCPcopy Create free account
hub / github.com/cli/cli / TestUploaderUploadAndAttachNoAssets

Function TestUploaderUploadAndAttachNoAssets

internal/attachments/attach_test.go:266–276  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

264}
265
266func TestUploaderUploadAndAttachNoAssets(t *testing.T) {
267 reg := &httpmock.Registry{}
268 defer reg.Verify(t)
269
270 body, result, err := testUploader(reg).UploadAndAttach(context.Background(), "unchanged\n", nil)
271
272 require.NoError(t, err)
273 assert.Equal(t, UploadResult{}, result)
274 assert.Equal(t, "unchanged\n", body)
275 assert.Empty(t, reg.Requests)
276}
277
278func TestAppendParagraph(t *testing.T) {
279 tests := []struct {

Callers

nothing calls this directly

Calls 5

VerifyMethod · 0.95
testUploaderFunction · 0.85
UploadAndAttachMethod · 0.80
EqualMethod · 0.80
EmptyMethod · 0.80

Tested by

no test coverage detected