mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-26 09:54:23 +00:00
Add more unit test cases for cmd/util/output
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
This commit is contained in:
@@ -153,3 +153,10 @@ func WithManagedFields(val []metav1.ManagedFieldsEntry) func(obj metav1.Object)
|
||||
obj.SetManagedFields(val)
|
||||
}
|
||||
}
|
||||
|
||||
// WithCreationTimestamp is a functional option that applies the specified creationTimestamp
|
||||
func WithCreationTimestamp(t time.Time) func(obj metav1.Object) {
|
||||
return func(obj metav1.Object) {
|
||||
obj.SetCreationTimestamp(metav1.Time{Time: t})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user