We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de4dcfc commit faf9792Copy full SHA for faf9792
metadata/updater/updater.go
@@ -662,6 +662,9 @@ func (update *Updater) GetTrustedMetadataSet() trustedmetadata.TrustedMetadata {
662
return *update.trusted
663
}
664
665
+// Sets the reference time that the updater uses.
666
+// This should only be done in tests.
667
+// UnsafeSetRefTime is useful when testing time-related behavior in go-tuf.
668
func (update *Updater) UnsafeSetRefTime(t time.Time) {
669
update.trusted.RefTime = t
670
0 commit comments