fix(quick-13): resolve lint issues in main source files
- Fix errcheck for db.Close() in testhelper.go - Fix errcheck, nlreturn, wsl, gofumpt issues in genevents/main.go - Fix gofumpt and wsl issues in library.go
This commit is contained in:
@@ -126,8 +126,11 @@ func TestUserVolume_ToVolume_Roundtrip(t *testing.T) {
|
||||
|
||||
diff := int(roundtripped) - int(i)
|
||||
if diff < -1 || diff > 1 {
|
||||
t.Errorf("Roundtrip UserVolume(%d) -> Volume(%f) -> UserVolume(%d): drift %d exceeds ±1",
|
||||
i, vol, roundtripped, diff)
|
||||
t.Errorf(
|
||||
"Roundtrip UserVolume(%d) -> Volume(%f) -> UserVolume(%d): "+
|
||||
"drift %d exceeds ±1",
|
||||
i, vol, roundtripped, diff,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,8 +141,11 @@ func TestUserVolume_ToVolume_Roundtrip(t *testing.T) {
|
||||
roundtripped := vol.ToUserVolume()
|
||||
|
||||
if roundtripped != uv {
|
||||
t.Errorf("Exact roundtrip UserVolume(%d) -> Volume(%f) -> UserVolume(%d): want exact match",
|
||||
uv, vol, roundtripped)
|
||||
t.Errorf(
|
||||
"Exact roundtrip UserVolume(%d) -> Volume(%f) -> "+
|
||||
"UserVolume(%d): want exact match",
|
||||
uv, vol, roundtripped,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user