mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-22 02:11:12 +00:00
Update golang packages to v1.23 (v7.0/forgejo) (minor) (#7081)
- Bump golangci-lint and fixes new linting issues. - Bump golang.org/x/crypto. - Bump deadcode package - Bump govulncheck. Co-authored-by: Gusted <postmaster@gusted.xyz> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7081 Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org> Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
This commit is contained in:
parent
957774e5e7
commit
70ccec328d
53 changed files with 389 additions and 381 deletions
|
@ -5,7 +5,6 @@
|
|||
package gitdiff
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
"testing"
|
||||
|
@ -645,9 +644,9 @@ func TestGetDiffRangeWithWhitespaceBehavior(t *testing.T) {
|
|||
MaxFiles: setting.Git.MaxGitDiffFiles,
|
||||
WhitespaceBehavior: behavior,
|
||||
})
|
||||
require.NoError(t, err, fmt.Sprintf("Error when diff with %s", behavior))
|
||||
require.NoError(t, err, "Error when diff with %s", behavior)
|
||||
for _, f := range diffs.Files {
|
||||
assert.Positive(t, len(f.Sections), fmt.Sprintf("%s should have sections", f.Name))
|
||||
assert.NotEmpty(t, f.Sections, "%s should have sections", f.Name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue