mirror of
https://github.com/versity/versitygw.git
synced 2026-01-08 04:35:15 +00:00
fix: Fixed unused variables staticcheck in backend unit test functions
This commit is contained in:
@@ -19,7 +19,6 @@ func TestBackend_ListBuckets(t *testing.T) {
|
||||
c Backend
|
||||
args args
|
||||
wantErr bool
|
||||
want s3.ListBucketsOutput
|
||||
}
|
||||
var tests []test
|
||||
tests = append(tests, test{
|
||||
@@ -69,7 +68,6 @@ func TestBackend_HeadBucket(t *testing.T) {
|
||||
c Backend
|
||||
args args
|
||||
wantErr bool
|
||||
want s3.ListBucketsOutput
|
||||
}
|
||||
var tests []test
|
||||
tests = append(tests, test{
|
||||
@@ -103,7 +101,6 @@ func TestBackend_GetBucketAcl(t *testing.T) {
|
||||
c Backend
|
||||
args args
|
||||
wantErr bool
|
||||
want *s3.GetBucketAclOutput
|
||||
}
|
||||
var tests []test
|
||||
tests = append(tests, test{
|
||||
@@ -137,7 +134,6 @@ func TestBackend_PutBucket(t *testing.T) {
|
||||
c Backend
|
||||
args args
|
||||
wantErr bool
|
||||
want s3.ListBucketsOutput
|
||||
}
|
||||
var tests []test
|
||||
tests = append(tests, test{
|
||||
@@ -183,7 +179,6 @@ func TestBackend_DeleteBucket(t *testing.T) {
|
||||
c Backend
|
||||
args args
|
||||
wantErr bool
|
||||
want s3.ListBucketsOutput
|
||||
}
|
||||
var tests []test
|
||||
tests = append(tests, test{
|
||||
|
||||
2
go.mod
2
go.mod
@@ -6,6 +6,7 @@ require (
|
||||
github.com/aws/aws-sdk-go-v2 v1.18.0
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.33.1
|
||||
github.com/gofiber/fiber/v2 v2.45.0
|
||||
github.com/valyala/fasthttp v1.47.0
|
||||
)
|
||||
|
||||
require (
|
||||
@@ -30,7 +31,6 @@ require (
|
||||
github.com/savsgio/gotils v0.0.0-20230208104028-c358bd845dee // indirect
|
||||
github.com/tinylib/msgp v1.1.8 // indirect
|
||||
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
||||
github.com/valyala/fasthttp v1.47.0 // indirect
|
||||
github.com/valyala/tcplisten v1.0.0 // indirect
|
||||
golang.org/x/sys v0.8.0 // indirect
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user