Trioxidation / Triox

A free file hosting server that focuses on speed, reliability and security.
GNU Affero General Public License v3.0
102 stars 14 forks source link

Tests for files module #40

Closed realaravinth closed 2 years ago

realaravinth commented 3 years ago

closes #5

codecov-commenter commented 3 years ago

Codecov Report

Merging #40 (dd66abb) into master (475556c) will increase coverage by 10.83%. The diff coverage is 84.67%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #40       +/-   ##
===========================================
+ Coverage   66.76%   77.59%   +10.83%     
===========================================
  Files          29       29               
  Lines         674      741       +67     
===========================================
+ Hits          450      575      +125     
+ Misses        224      166       -58     
Impacted Files Coverage Δ
src/app_state.rs 85.71% <ø> (-7.15%) :arrow_down:
src/apps/files/mod.rs 81.81% <0.00%> (+21.81%) :arrow_up:
src/main.rs 4.16% <ø> (ø)
src/middleware/rate_limit.rs 77.77% <0.00%> (ø)
src/apps/files/upload.rs 4.54% <5.55%> (-1.02%) :arrow_down:
src/tests/helpers.rs 97.67% <88.88%> (-2.33%) :arrow_down:
src/tests/files.rs 98.71% <98.71%> (ø)
src/api/v1/account/test.rs 100.00% <100.00%> (ø)
src/api/v1/auth.rs 83.95% <100.00%> (ø)
src/api/v1/meta.rs 96.87% <100.00%> (ø)
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 475556c...dd66abb. Read the comment docs.

realaravinth commented 3 years ago

Alright, I officially give up. I can't write multipart tests lol. I wrote a server that can be spawned from within tests but I don't know how to send multipart requests