style: go fmt for all
This commit is contained in:
@@ -3,11 +3,11 @@ package needle
|
||||
import "testing"
|
||||
|
||||
func TestNewVolumeId(t *testing.T) {
|
||||
if _,err := NewVolumeId("1"); err != nil {
|
||||
if _, err := NewVolumeId("1"); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
if _, err := NewVolumeId("a");err != nil {
|
||||
if _, err := NewVolumeId("a"); err != nil {
|
||||
t.Logf("a is not legal volume id, %v", err)
|
||||
}
|
||||
}
|
||||
@@ -42,4 +42,4 @@ func TestVolumeId_Next(t *testing.T) {
|
||||
if new := pvid.Next(); new != 12 {
|
||||
t.Errorf("get next volume id failed")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user