johannesboyne / gofakes3

A simple fake AWS S3 object storage (used for local test-runs against AWS S3 APIs)
MIT License
358 stars 81 forks source link

Extend Backend interface with CopyObject method #84

Closed ChrisSchinnerl closed 1 year ago

ChrisSchinnerl commented 1 year ago

Drawing some inspiration from the https://github.com/Mikubill/gofakes3 fork used by Rclone, this PR adds Copy support to this fork to avoid downloading and re uploading an object on copy.

codecov-commenter commented 1 year ago

Codecov Report

Merging #84 (dffef5b) into master (42c772b) will increase coverage by 0.12%. The diff coverage is 65.21%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##           master      #84      +/-   ##
==========================================
+ Coverage   65.93%   66.05%   +0.12%     
==========================================
  Files          28       28              
  Lines        2677     2687      +10     
==========================================
+ Hits         1765     1775      +10     
- Misses        647      648       +1     
+ Partials      265      264       -1     
Files Changed Coverage Δ
backend/s3afero/multi.go 38.56% <0.00%> (-0.27%) :arrow_down:
backend/s3afero/single.go 37.10% <0.00%> (-0.30%) :arrow_down:
backend.go 82.85% <66.66%> (-8.45%) :arrow_down:
backend/s3mem/backend.go 68.45% <100.00%> (+0.21%) :arrow_up:
gofakes3.go 65.64% <100.00%> (+0.84%) :arrow_up:
sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication