Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestExpectedExpiryTime (0.23 sec)

  1. internal/bucket/lifecycle/lifecycle_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    		if _, ok := ruleSet[string(ruleBytes)]; !ok {
    			t.Fatalf("Expected %v to be equal to %v, %v missing", lc, lc1, rule)
    		}
    	}
    }
    
    func TestExpectedExpiryTime(t *testing.T) {
    	testCases := []struct {
    		modTime  time.Time
    		days     ExpirationDays
    		expected time.Time
    	}{
    		{
    			time.Date(2020, time.March, 15, 10, 10, 10, 0, time.UTC),
    			4,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top