(t *testing.T)
| 248 | } |
| 249 | |
| 250 | func TestUploaderUploadAndAttachNoAssets(t *testing.T) { |
| 251 | reg := &httpmock.Registry{} |
| 252 | defer reg.Verify(t) |
| 253 | |
| 254 | body, uploaded, err := testUploader(reg).UploadAndAttach(context.Background(), "unchanged\n", nil) |
| 255 | |
| 256 | require.NoError(t, err) |
| 257 | assert.Zero(t, uploaded) |
| 258 | assert.Equal(t, "unchanged\n", body) |
| 259 | assert.Empty(t, reg.Requests) |
| 260 | } |
| 261 | |
| 262 | func TestAppendParagraph(t *testing.T) { |
| 263 | tests := []struct { |
nothing calls this directly
no test coverage detected