Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for rulesets (0.25 sec)

  1. cmd/test-utils_test.go

    			if !v.hasEnded() {
    				v.stop()
    			}
    		}
    		globalBackgroundHealState.Unlock()
    	}
    }
    
    // sets globalIAMSys to `nil`.
    func resetGlobalIAMSys() {
    	globalIAMSys = nil
    }
    
    // Resets all the globals used modified in tests.
    // Resetting ensures that the changes made to globals by one test doesn't affect others.
    func resetTestGlobals() {
    	// set globalObjectAPI to `nil`.
    	resetGlobalObjectAPI()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/lifecycle_test.go

    		t.Fatal(err)
    	}
    
    	ruleSet := make(map[string]struct{})
    	for _, rule := range lc.Rules {
    		ruleBytes, err := xml.Marshal(rule)
    		if err != nil {
    			t.Fatal(err)
    		}
    		ruleSet[string(ruleBytes)] = struct{}{}
    	}
    	for _, rule := range lc1.Rules {
    		ruleBytes, err := xml.Marshal(rule)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if _, ok := ruleSet[string(ruleBytes)]; !ok {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
Back to top