(t *testing.T)
| 528 | } |
| 529 | |
| 530 | func 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 | |
| 542 | func TestAppendParagraph(t *testing.T) { |
| 543 | tests := []struct { |
nothing calls this directly
no test coverage detected