func newJob(completionTime, failedTime metav1.Time, ttl *int32) *batchv1.Job { … } func TestTimeLeft(t *testing.T) { … }