Closed onelson closed 3 years ago
Merging #1 (ca6cd97) into main (91d35eb) will increase coverage by
95.53%
. The diff coverage is97.27%
.
@@ Coverage Diff @@
## main #1 +/- ##
==========================================
+ Coverage 0.00% 95.53% +95.53%
==========================================
Files 1 2 +1
Lines 2 112 +110
==========================================
+ Hits 0 107 +107
- Misses 2 5 +3
Impacted Files | Coverage Δ | |
---|---|---|
src/main.rs | 0.00% <0.00%> (ø) |
|
src/index.rs | 99.07% <99.07%> (ø) |
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 91d35eb...ca6cd97. Read the comment docs.
When the service starts up, we'll want to ensure the git repository that tracks changes to the registry index is initialized, and that the service's public download/api urls are reflected in the index config.
This diff adds a bunch of functions to help accomplish this. From the service
main()
we should be able to rely on just theindex::init()
function to get things rolling.I'm unsure of the git2-rs usage but I disarmed the auto-cleanup done by
TempDir
in the test suite and looked at the git repos for each test in my shell. Things seem to be as expected; assertions in the tests now revolve around inspecting the reflog, mimicking my manual (in the shell) verification method.