mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:40:57 +00:00
go fmt
This commit is contained in:
parent
2ebf3cd450
commit
2e0bcf611c
@ -1,8 +1,8 @@
|
|||||||
package beego
|
package beego
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestList_01(t *testing.T) {
|
func TestList_01(t *testing.T) {
|
||||||
@ -11,8 +11,8 @@ func TestList_01(t *testing.T) {
|
|||||||
t.Log(m)
|
t.Log(m)
|
||||||
om := oldMap()
|
om := oldMap()
|
||||||
for k, v := range om {
|
for k, v := range om {
|
||||||
if fmt.Sprint(m[k])!= fmt.Sprint(v) {
|
if fmt.Sprint(m[k]) != fmt.Sprint(v) {
|
||||||
t.Log(k, "old-key",v,"new-key", m[k])
|
t.Log(k, "old-key", v, "new-key", m[k])
|
||||||
t.FailNow()
|
t.FailNow()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -117,8 +117,7 @@ func TestAssignConfig_03(t *testing.T) {
|
|||||||
ac.Set("StaticExtensionsToGzip", ".css,.js,.html,.jpg,.png")
|
ac.Set("StaticExtensionsToGzip", ".css,.js,.html,.jpg,.png")
|
||||||
assignConfig(ac)
|
assignConfig(ac)
|
||||||
|
|
||||||
|
t.Logf("%#v", BConfig)
|
||||||
t.Logf("%#v",BConfig)
|
|
||||||
|
|
||||||
if BConfig.AppName != "test_app" {
|
if BConfig.AppName != "test_app" {
|
||||||
t.FailNow()
|
t.FailNow()
|
||||||
|
Loading…
Reference in New Issue
Block a user