mirror of
https://github.com/kopia/kopia.git
synced 2026-01-29 08:43:09 -05:00
Motivation: Allow time injection for (unit) tests, to more easily test and verify time-dependent invariants. Add time injection support for: * repo.Manager * manifest.Manager * snapshot.Uploader Then, wire up to these components. The content.Manager already had support for time injection, but was not wired up from the time function passed to repo creation. Add an internal/faketime package for testing. Mainly code movement from testing code in the repo/content package. Motivation: make it available to other packages outside content Also, add simple tests for faketime functions.