fix: Fixed unused variables staticcheck in backend unit test functions

This commit is contained in:
jonaustin09
2023-05-22 23:50:49 +04:00
parent 687a73e367
commit 0a1bf26f10
2 changed files with 1 additions and 6 deletions

View File

@@ -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
View File

@@ -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
)