[#1016] frostfs-node: Fix gopls issues

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-03-01 11:58:17 +03:00
parent 6dbb61caf4
commit d6534fd755
16 changed files with 53 additions and 52 deletions

View file

@ -27,7 +27,7 @@ func TestEACLTableWithoutRecords(t *testing.T) {
res: &testResource{name: nativeschema.ResourceFormatRootObjects},
}
compare(t, tb, vu, ch, req)
compare(t, vu, ch, req)
cnrID := cidtest.ID()
tb.SetCID(cnrID)
@ -37,7 +37,7 @@ func TestEACLTableWithoutRecords(t *testing.T) {
ch, err = ConvertEACLToAPE(tb)
require.NoError(t, err)
compare(t, tb, vu, ch, req)
compare(t, vu, ch, req)
}
func TestNoTargets(t *testing.T) {
@ -69,7 +69,7 @@ func TestNoTargets(t *testing.T) {
},
res: &testResource{name: fmt.Sprintf(nativeschema.ResourceFormatRootContainerObjects, cnrID.EncodeToString())},
}
compare(t, tb, vu, ch, req)
compare(t, vu, ch, req)
}
}
@ -109,7 +109,7 @@ func TestNoFilters(t *testing.T) {
},
res: &testResource{name: fmt.Sprintf(nativeschema.ResourceFormatRootContainerObjects, cnrID.EncodeToString())},
}
compare(t, tb, vu, ch, req)
compare(t, vu, ch, req)
}
})
@ -155,7 +155,7 @@ func TestNoFilters(t *testing.T) {
},
res: &testResource{name: fmt.Sprintf(nativeschema.ResourceFormatRootContainerObjects, cnrID.EncodeToString())},
}
compare(t, tb, vu, ch, req)
compare(t, vu, ch, req)
}
})
@ -199,7 +199,7 @@ func TestNoFilters(t *testing.T) {
},
res: &testResource{name: fmt.Sprintf(nativeschema.ResourceFormatRootContainerObjects, cnrID.EncodeToString())},
}
compare(t, tb, vu, ch, req)
compare(t, vu, ch, req)
}
})
@ -236,7 +236,7 @@ func TestNoFilters(t *testing.T) {
},
res: &testResource{name: fmt.Sprintf(nativeschema.ResourceFormatRootContainerObjects, cnrID.EncodeToString())},
}
compare(t, tb, vu, ch, req)
compare(t, vu, ch, req)
}
})
}
@ -292,7 +292,7 @@ func TestWithFilters(t *testing.T) {
},
},
}
compare(t, tb, vu, ch, req)
compare(t, vu, ch, req)
}
})
@ -342,7 +342,7 @@ func TestWithFilters(t *testing.T) {
name: fmt.Sprintf(nativeschema.ResourceFormatRootContainerObjects, cnrID.EncodeToString()),
},
}
compare(t, tb, vu, ch, req)
compare(t, vu, ch, req)
}
})
}
@ -391,10 +391,10 @@ func TestNoHeader(t *testing.T) {
name: fmt.Sprintf(nativeschema.ResourceFormatRootContainerObjects, cnrID.EncodeToString()),
},
}
compare(t, tb, vu, ch, req)
compare(t, vu, ch, req)
}
func compare(t *testing.T, eaclTable *eacl.Table, vu *eacl.ValidationUnit, ch *apechain.Chain, req *testRequest) {
func compare(t *testing.T, vu *eacl.ValidationUnit, ch *apechain.Chain, req *testRequest) {
validator := eacl.NewValidator()
for eaclOp, apeOp := range eaclOperationToEngineAction {
vu.WithOperation(eaclOp)