Apply goimports' modifications
This commit is contained in:
2
client/cache/calc_utils.go
vendored
2
client/cache/calc_utils.go
vendored
@@ -80,4 +80,4 @@ func decr(originVal interface{}) (interface{}, error) {
|
||||
default:
|
||||
return nil, fmt.Errorf("item val is not (u)int (u)int32 (u)int64")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
6
client/cache/calc_utils_test.go
vendored
6
client/cache/calc_utils_test.go
vendored
@@ -19,7 +19,7 @@ func TestIncr(t *testing.T) {
|
||||
t.Errorf("incr failed, expect %v, but %v actually", updateVal, val)
|
||||
return
|
||||
}
|
||||
_, err = incr(int(1 << (strconv.IntSize - 1) - 1))
|
||||
_, err = incr(int(1<<(strconv.IntSize-1) - 1))
|
||||
if err == nil {
|
||||
t.Error("incr failed")
|
||||
return
|
||||
@@ -73,7 +73,7 @@ func TestIncr(t *testing.T) {
|
||||
t.Errorf("incr failed, expect %v, but %v actually", updateVal, val)
|
||||
return
|
||||
}
|
||||
_, err = incr(uint(1 << (strconv.IntSize) - 1))
|
||||
_, err = incr(uint(1<<(strconv.IntSize) - 1))
|
||||
if err == nil {
|
||||
t.Error("incr failed")
|
||||
return
|
||||
@@ -238,4 +238,4 @@ func TestDecr(t *testing.T) {
|
||||
t.Error("decr failed")
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user