fmt all go file
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"github.com/leanote/leanote/app/db"
|
||||
// . "github.com/leanote/leanote/app/lea"
|
||||
"testing"
|
||||
// . "github.com/leanote/leanote/app/lea"
|
||||
"github.com/leanote/leanote/app/service"
|
||||
// "gopkg.in/mgo.v2"
|
||||
// "fmt"
|
||||
// "gopkg.in/mgo.v2"
|
||||
// "fmt"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -20,4 +20,4 @@ func TestAuth(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Error("Admin User Auth Error")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"github.com/leanote/leanote/app/db"
|
||||
// . "github.com/leanote/leanote/app/lea"
|
||||
// "github.com/leanote/leanote/app/service"
|
||||
// "gopkg.in/mgo.v2"
|
||||
// "fmt"
|
||||
"testing"
|
||||
// . "github.com/leanote/leanote/app/lea"
|
||||
// "github.com/leanote/leanote/app/service"
|
||||
// "gopkg.in/mgo.v2"
|
||||
// "fmt"
|
||||
)
|
||||
|
||||
func TestDBConnect(t *testing.T) {
|
||||
db.Init("mongodb://localhost:27017/leanote", "leanote")
|
||||
}
|
||||
db.Init("mongodb://localhost:27017/leanote", "leanote")
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
package tests
|
||||
|
||||
func a() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user