Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for HasAll (0.12 sec)

  1. pkg/util/iptables/iptables_test.go

    	if !sets.New(fcmd.CombinedOutputLog[0]...).HasAll(iptablesCmd, "--version") {
    		t.Errorf("%s runner instantiate: Expected cmd '%s --version', Got '%s'", protocol, iptablesCmd, fcmd.CombinedOutputLog[0])
    	}
    
    	// Check that proper iptables restore version command was used during runner instantiation
    	if !sets.New(fcmd.CombinedOutputLog[1]...).HasAll(iptablesRestoreCmd, "--version") {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:21:59 UTC 2023
    - 46.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/sets/int32.go

    }
    
    // Has returns true if and only if item is contained in the set.
    func (s Int32) Has(item int32) bool {
    	return cast(s).Has(item)
    }
    
    // HasAll returns true if and only if all items are contained in the set.
    func (s Int32) HasAll(items ...int32) bool {
    	return cast(s).HasAll(items...)
    }
    
    // HasAny returns true if any items are contained in the set.
    func (s Int32) HasAny(items ...int32) bool {
    	return cast(s).HasAny(items...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 03:47:18 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/sets/int.go

    }
    
    // Has returns true if and only if item is contained in the set.
    func (s Int) Has(item int) bool {
    	return cast(s).Has(item)
    }
    
    // HasAll returns true if and only if all items are contained in the set.
    func (s Int) HasAll(items ...int) bool {
    	return cast(s).HasAll(items...)
    }
    
    // HasAny returns true if any items are contained in the set.
    func (s Int) HasAny(items ...int) bool {
    	return cast(s).HasAny(items...)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 03:47:18 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/sets/byte.go

    }
    
    // Has returns true if and only if item is contained in the set.
    func (s Byte) Has(item byte) bool {
    	return cast(s).Has(item)
    }
    
    // HasAll returns true if and only if all items are contained in the set.
    func (s Byte) HasAll(items ...byte) bool {
    	return cast(s).HasAll(items...)
    }
    
    // HasAny returns true if any items are contained in the set.
    func (s Byte) HasAny(items ...byte) bool {
    	return cast(s).HasAny(items...)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 03:47:18 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/sets/int64.go

    }
    
    // Has returns true if and only if item is contained in the set.
    func (s Int64) Has(item int64) bool {
    	return cast(s).Has(item)
    }
    
    // HasAll returns true if and only if all items are contained in the set.
    func (s Int64) HasAll(items ...int64) bool {
    	return cast(s).HasAll(items...)
    }
    
    // HasAny returns true if any items are contained in the set.
    func (s Int64) HasAny(items ...int64) bool {
    	return cast(s).HasAny(items...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 03:47:18 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/sets/string.go

    }
    
    // Has returns true if and only if item is contained in the set.
    func (s String) Has(item string) bool {
    	return cast(s).Has(item)
    }
    
    // HasAll returns true if and only if all items are contained in the set.
    func (s String) HasAll(items ...string) bool {
    	return cast(s).HasAll(items...)
    }
    
    // HasAny returns true if any items are contained in the set.
    func (s String) HasAny(items ...string) bool {
    	return cast(s).HasAny(items...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 03:47:18 UTC 2022
    - 4K bytes
    - Viewed (0)
  7. pkg/proxy/ipvs/ipset/ipset_test.go

    		t.Errorf("expected success, got %v", err)
    	}
    	if fcmd.CombinedOutputCalls != 1 {
    		t.Errorf("expected 1 CombinedOutput() calls, got %d", fcmd.CombinedOutputCalls)
    	}
    	if !sets.NewString(fcmd.CombinedOutputLog[0]...).HasAll("ipset", "flush", "FOOBAR") {
    		t.Errorf("wrong CombinedOutput() log, got %s", fcmd.CombinedOutputLog[0])
    	}
    	// Flush again
    	err = runner.FlushSet("FOOBAR")
    	if err != nil {
    		t.Errorf("expected success, got %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 41.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/sets/set.go

    	return s
    }
    
    // Has returns true if and only if item is contained in the set.
    func (s Set[T]) Has(item T) bool {
    	_, contained := s[item]
    	return contained
    }
    
    // HasAll returns true if and only if all items are contained in the set.
    func (s Set[T]) HasAll(items ...T) bool {
    	for _, item := range items {
    		if !s.Has(item) {
    			return false
    		}
    	}
    	return true
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 19:51:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/sets/set_generic_test.go

    	}
    	if !s.Has("a") {
    		t.Errorf("Missing contents: %#v", s)
    	}
    	s.Delete("a")
    	if s.Has("a") {
    		t.Errorf("Unexpected contents: %#v", s)
    	}
    	s.Insert("a")
    	if s.HasAll("a", "b", "d") {
    		t.Errorf("Unexpected contents: %#v", s)
    	}
    	if !s.HasAll("a", "b") {
    		t.Errorf("Missing contents: %#v", s)
    	}
    	s2.Insert("a", "b", "d")
    	if s.IsSuperset(s2) {
    		t.Errorf("Unexpected contents: %#v", s)
    	}
    	s2.Delete("d")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 09:03:44 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/sets/set_test.go

    	}
    	if !s.Has("a") {
    		t.Errorf("Missing contents: %#v", s)
    	}
    	s.Delete("a")
    	if s.Has("a") {
    		t.Errorf("Unexpected contents: %#v", s)
    	}
    	s.Insert("a")
    	if s.HasAll("a", "b", "d") {
    		t.Errorf("Unexpected contents: %#v", s)
    	}
    	if !s.HasAll("a", "b") {
    		t.Errorf("Missing contents: %#v", s)
    	}
    	s2.Insert("a", "b", "d")
    	if s.IsSuperset(s2) {
    		t.Errorf("Unexpected contents: %#v", s)
    	}
    	s2.Delete("d")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 03:47:18 UTC 2022
    - 8K bytes
    - Viewed (0)
Back to top