Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewEvaluator (0.24 sec)

  1. internal/bucket/lifecycle/lifecycle_test.go

    		IsLatest: true,
    		ModTime:  now,
    	}
    
    	obj2 := ObjectOpts{
    		Name:    "obj2",
    		ModTime: now,
    	}
    
    	// Go back seven days in the past
    	now = now.Add(7 * 24 * time.Hour)
    
    	evaluator := NewEvaluator(lc)
    	evts := evaluator.eval([]ObjectOpts{obj1, obj2}, now)
    	evt := evts[0]
    	if evt.Action != TransitionAction {
    		t.Fatalf("Expected action: %s but got %s", TransitionAction, evt.Action)
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 55.5K bytes
    - Viewed (0)
Back to top