()
| 14922 | } |
| 14923 | |
| 14924 | func main() { |
| 14925 | slog.SetDefault(slog.New(slog.NewJSONHandler( |
| 14926 | os.Stdout, |
| 14927 | &slog.HandlerOptions{ |
| 14928 | Level: slog.LevelInfo, |
| 14929 | ReplaceAttr: func(groups []string, a slog.Attr) slog.Attr { |
| 14930 | if a.Key == slog.MessageKey || a.Value.String() == "" { |
| 14931 | return slog.Attr{} |
| 14932 | } |
| 14933 | |
| 14934 | return a |
| 14935 | }, |
| 14936 | }, |
| 14937 | ))) |
| 14938 | |
| 14939 | tls := mustParseBool(os.Getenv(enableHTTPS)) |
| 14940 | kms := mustParseBool(os.Getenv(enableKMS)) |
| 14941 | if os.Getenv(enableKMS) == "" { |
| 14942 | // Default to KMS tests. |
| 14943 | kms = true |
| 14944 | } |
| 14945 | |
| 14946 | // execute tests |
| 14947 | if isFullMode() { |
| 14948 | testPutObjectWithChecksums() |
| 14949 | testPutObjectWithTrailingChecksums() |
| 14950 | testPutMultipartObjectWithChecksums() |
| 14951 | testCopyObjectWithChecksums() |
| 14952 | testReplaceObjectWithChecksums() |
| 14953 | testCorsSetGetDelete() |
| 14954 | testCors() |
| 14955 | testListMultipartUpload() |
| 14956 | testGetObjectAttributes() |
| 14957 | testGetObjectAttributesErrorCases() |
| 14958 | testMakeBucketErrorV2() |
| 14959 | testGetObjectClosedTwiceV2() |
| 14960 | testFPutObjectV2() |
| 14961 | testMakeBucketRegionsV2() |
| 14962 | testGetObjectReadSeekFunctionalV2() |
| 14963 | testGetObjectReadAtFunctionalV2() |
| 14964 | testGetObjectRanges() |
| 14965 | testCopyObjectV2() |
| 14966 | testFunctionalV2() |
| 14967 | testComposeObjectErrorCasesV2() |
| 14968 | testCompose10KSourcesV2() |
| 14969 | testUserMetadataCopyingV2() |
| 14970 | testPutObject0ByteV2() |
| 14971 | testPutObjectMetadataNonUSASCIIV2() |
| 14972 | testPutObjectNoLengthV2() |
| 14973 | testPutObjectsUnknownV2() |
| 14974 | testPutObjectWithAutoChecksums() |
| 14975 | testGetObjectContextV2() |
| 14976 | testFPutObjectContextV2() |
| 14977 | testFGetObjectContextV2() |
| 14978 | testPutObjectContextV2() |
| 14979 | testPutObjectWithVersioning() |
| 14980 | testMakeBucketError() |
| 14981 | testMakeBucketRegions() |
nothing calls this directly
no test coverage detected