mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
refactor: manually modernize Go (#349)
Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -30,8 +30,7 @@ func TestContainerFingerprint_EqualCoversAllFields(t *testing.T) {
|
||||
assert.True(t, base.Equal(base), "base fingerprint must be equal to itself")
|
||||
|
||||
rt := reflect.TypeOf(base)
|
||||
for i := 0; i < rt.NumField(); i++ {
|
||||
field := rt.Field(i)
|
||||
for field := range rt.Fields() {
|
||||
t.Run(field.Name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user