mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-21 17:24:10 +00:00
format with gofumpt (#18184)
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
This commit is contained in:
parent
1d98d205f5
commit
54e9ee37a7
423 changed files with 1585 additions and 1758 deletions
|
@ -20,7 +20,7 @@ import (
|
|||
func TestLinksNoLogin(t *testing.T) {
|
||||
defer prepareTestEnv(t)()
|
||||
|
||||
var links = []string{
|
||||
links := []string{
|
||||
"/explore/repos",
|
||||
"/explore/repos?q=test&tab=",
|
||||
"/explore/users",
|
||||
|
@ -49,7 +49,7 @@ func TestLinksNoLogin(t *testing.T) {
|
|||
func TestRedirectsNoLogin(t *testing.T) {
|
||||
defer prepareTestEnv(t)()
|
||||
|
||||
var redirects = map[string]string{
|
||||
redirects := map[string]string{
|
||||
"/user2/repo1/commits/master": "/user2/repo1/commits/branch/master",
|
||||
"/user2/repo1/src/master": "/user2/repo1/src/branch/master",
|
||||
"/user2/repo1/src/master/file.txt": "/user2/repo1/src/branch/master/file.txt",
|
||||
|
@ -67,7 +67,7 @@ func TestRedirectsNoLogin(t *testing.T) {
|
|||
func TestNoLoginNotExist(t *testing.T) {
|
||||
defer prepareTestEnv(t)()
|
||||
|
||||
var links = []string{
|
||||
links := []string{
|
||||
"/user5/repo4/projects",
|
||||
"/user5/repo4/projects/3",
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ func TestNoLoginNotExist(t *testing.T) {
|
|||
}
|
||||
|
||||
func testLinksAsUser(userName string, t *testing.T) {
|
||||
var links = []string{
|
||||
links := []string{
|
||||
"/explore/repos",
|
||||
"/explore/repos?q=test&tab=",
|
||||
"/explore/users",
|
||||
|
@ -138,7 +138,7 @@ func testLinksAsUser(userName string, t *testing.T) {
|
|||
var apiRepos []*api.Repository
|
||||
DecodeJSON(t, respAPI, &apiRepos)
|
||||
|
||||
var repoLinks = []string{
|
||||
repoLinks := []string{
|
||||
"",
|
||||
"/issues",
|
||||
"/pulls",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue