mirror of
1
Fork 0

Fix formatting

This commit is contained in:
mirko 2024-12-24 18:53:09 +01:00
parent 4e819f1b3c
commit b13ac5fcbf
1 changed files with 3 additions and 5 deletions

View File

@ -76,10 +76,10 @@ func TestComparePatchAndDiffMenuEntries(t *testing.T) {
resp := session.MakeRequest(t, req, http.StatusOK) resp := session.MakeRequest(t, req, http.StatusOK)
htmlDoc := NewHTMLParser(t, resp.Body) htmlDoc := NewHTMLParser(t, resp.Body)
downloadOptions := htmlDoc.doc.Find("a.item[download]") downloadOptions := htmlDoc.doc.Find("a.item[download]")
var patchDownloadEntryPresent bool var patchDownloadEntryPresent bool
var diffDownloadEntryPresent bool var diffDownloadEntryPresent bool
downloadOptions.Each(func (idx int, c *goquery.Selection) { downloadOptions.Each(func(idx int, c *goquery.Selection) {
value, exists := c.Attr("download") value, exists := c.Attr("download")
if exists && strings.HasSuffix(value, ".patch") { if exists && strings.HasSuffix(value, ".patch") {
patchDownloadEntryPresent = true patchDownloadEntryPresent = true
@ -88,7 +88,6 @@ func TestComparePatchAndDiffMenuEntries(t *testing.T) {
if exists && strings.HasSuffix(value, ".diff") { if exists && strings.HasSuffix(value, ".diff") {
diffDownloadEntryPresent = true diffDownloadEntryPresent = true
} }
}) })
assert.True(t, patchDownloadEntryPresent, "Patch file download entry should be present") assert.True(t, patchDownloadEntryPresent, "Patch file download entry should be present")
@ -121,7 +120,7 @@ index 0000000..e69de29`
assert.Equal(t, attendedResponse, resp.Body.String()) assert.Equal(t, attendedResponse, resp.Body.String())
// htmlDoc := NewHTMLParser(t, resp.Body) // htmlDoc := NewHTMLParser(t, resp.Body)
// downloadOptions := htmlDoc.doc.Find("a.item[download]") // downloadOptions := htmlDoc.doc.Find("a.item[download]")
// var patchDownloadEntryPresent bool // var patchDownloadEntryPresent bool
// var diffDownloadEntryPresent bool // var diffDownloadEntryPresent bool
// downloadOptions.Each(func (idx int, c *goquery.Selection) { // downloadOptions.Each(func (idx int, c *goquery.Selection) {
@ -139,7 +138,6 @@ index 0000000..e69de29`
// assert.True(t, diffDownloadEntryPresent, "Diff file download entry should be present") // assert.True(t, diffDownloadEntryPresent, "Diff file download entry should be present")
} }
// Git commit graph for repo20 // Git commit graph for repo20
// * 8babce9 (origin/remove-files-b) Add a dummy file // * 8babce9 (origin/remove-files-b) Add a dummy file
// * b67e43a Delete test.csv and link_hi // * b67e43a Delete test.csv and link_hi