feat: Fixes all struct fields alignment issues, Adds betteralign check in the pipeline, to check the structs fields alignment

This commit is contained in:
jonaustin09
2024-11-08 13:25:21 -05:00
parent b4190f6749
commit 7b6486cdba
42 changed files with 225 additions and 196 deletions
+1 -1
View File
@@ -26,9 +26,9 @@ import (
)
type prefResult struct {
err error
elapsed time.Duration
size int64
err error
}
func TestUpload(s *S3Conf, files int, objSize int64, bucket, prefix string) error {
+1 -1
View File
@@ -22,9 +22,9 @@ import (
)
type RReader struct {
hash hash.Hash
buf []byte
dataleft int
hash hash.Hash
}
func NewDataReader(totalsize, bufsize int) *RReader {
+2 -2
View File
@@ -35,10 +35,10 @@ type S3Conf struct {
awsSecret string
awsRegion string
endpoint string
checksumDisable bool
pathStyle bool
PartSize int64
Concurrency int
checksumDisable bool
pathStyle bool
debug bool
versioningEnabled bool
azureTests bool
+5 -5
View File
@@ -168,9 +168,9 @@ func teardown(s *S3Conf, bucket string) error {
}
type setupCfg struct {
LockEnabled bool
VersioningStatus types.BucketVersioningStatus
Ownership types.ObjectOwnership
LockEnabled bool
}
type setupOpt func(*setupCfg)
@@ -214,12 +214,12 @@ func actionHandler(s *S3Conf, testName string, handler func(s3client *s3.Client,
}
type authConfig struct {
date time.Time
testName string
path string
method string
body []byte
service string
date time.Time
body []byte
}
func authHandler(s *S3Conf, cfg *authConfig, handler func(req *http.Request) error) error {
@@ -434,9 +434,9 @@ func contains(s []string, e string) bool {
}
type putObjectOutput struct {
csum [32]byte
data []byte
res *s3.PutObjectOutput
data []byte
csum [32]byte
}
func putObjectWithData(lgth int64, input *s3.PutObjectInput, client *s3.Client) (*putObjectOutput, error) {