1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-21 12:44:49 -05:00

Fix import order (#1951)

This commit is contained in:
Ethan Koenig 2017-06-12 11:01:09 -04:00 committed by Bo-Yi Wu
parent 635273cea6
commit b38b61bbc1
3 changed files with 5 additions and 3 deletions

View file

@ -1,9 +1,10 @@
package models package models
import ( import (
dmp "github.com/sergi/go-diff/diffmatchpatch"
"html/template" "html/template"
"testing" "testing"
dmp "github.com/sergi/go-diff/diffmatchpatch"
) )
func assertEqual(t *testing.T, s1 string, s2 template.HTML) { func assertEqual(t *testing.T, s1 string, s2 template.HTML) {

View file

@ -13,6 +13,7 @@ import (
"code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util" "code.gitea.io/gitea/modules/util"
"github.com/blevesearch/bleve" "github.com/blevesearch/bleve"
"github.com/blevesearch/bleve/analysis/analyzer/simple" "github.com/blevesearch/bleve/analysis/analyzer/simple"
"github.com/blevesearch/bleve/search/query" "github.com/blevesearch/bleve/search/query"

View file

@ -5,13 +5,13 @@
package models package models
import ( import (
"sort"
"testing" "testing"
"time"
api "code.gitea.io/sdk/gitea" api "code.gitea.io/sdk/gitea"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"sort"
"time"
) )
func TestMilestone_State(t *testing.T) { func TestMilestone_State(t *testing.T) {