Browse Source

format code

pull/279/head
tnextday 10 years ago
parent
commit
66825b4b34
  1. 8
      go/storage/collection_settings_test.go

8
go/storage/collection_settings_test.go

@ -1,9 +1,9 @@
package storage package storage
import ( import (
"testing"
"reflect"
"encoding/json" "encoding/json"
"reflect"
"testing"
) )
func TestCollectionSettings(t *testing.T) { func TestCollectionSettings(t *testing.T) {
@ -20,9 +20,9 @@ func TestCollectionSettings(t *testing.T) {
t.Fatal("Value incorrect.") t.Fatal("Value incorrect.")
} }
pb := cs1.ToPbMessage() pb := cs1.ToPbMessage()
if buf, e := json.MarshalIndent(pb, "", "\t");e == nil {
if buf, e := json.MarshalIndent(pb, "", "\t"); e == nil {
t.Log(string(buf)) t.Log(string(buf))
}else{
} else {
t.Fatal(e) t.Fatal(e)
} }
cs2 := NewCollectionSettingsFromPbMessage(pb) cs2 := NewCollectionSettingsFromPbMessage(pb)

Loading…
Cancel
Save