(t *testing.T)
| 264 | } |
| 265 | |
| 266 | func 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 | |
| 278 | func TestAppendParagraph(t *testing.T) { |
| 279 | tests := []struct { |
nothing calls this directly
no test coverage detected