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

Function TestUploaderUploadAndAttachNoAssets

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

Source from the content-addressed store, hash-verified

528}
529
530func TestUploaderUploadAndAttachNoAssets(t *testing.T) {
531 reg := &httpmock.Registry{}
532 defer reg.Verify(t)
533
534 body, result, err := testUploader(reg).UploadAndAttach(context.Background(), "unchanged\n", "", nil)
535
536 require.NoError(t, err)
537 assert.Equal(t, UploadResult{}, result)
538 assert.Equal(t, "unchanged\n", body)
539 assert.Empty(t, reg.Requests)
540}
541
542func TestAppendParagraph(t *testing.T) {
543 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