Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 118 for Ss (0.02 sec)

  1. pkg/util/tolerations/tolerations.go

    	if t.Effect != ss.Effect && ss.Effect != "" {
    		return false
    	}
    
    	if ss.Effect == api.TaintEffectNoExecute {
    		if ss.TolerationSeconds != nil {
    			if t.TolerationSeconds == nil ||
    				*t.TolerationSeconds > *ss.TolerationSeconds {
    				return false
    			}
    		}
    	}
    
    	switch ss.Operator {
    	case api.TolerationOpEqual, "": // empty operator means Equal
    		return t.Operator == api.TolerationOpEqual && t.Value == ss.Value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 2.7K bytes
    - Viewed (0)
  2. test/ken/complit.go

    type	M	map[int]int
    type	S	struct{ a,b,c int };
    type	SS	struct{ aa,bb,cc S };
    type	SA	struct{ a,b,c [3]int };
    type	SC	struct{ a,b,c []int };
    type	SM	struct{ a,b,c M };
    
    func
    main() {
    	test("s.a", s.a);
    	test("s.b", s.b);
    	test("s.c", s.c);
    
    	test("ss.aa.a", ss.aa.a);
    	test("ss.aa.b", ss.aa.b);
    	test("ss.aa.c", ss.aa.c);
    
    	test("ss.bb.a", ss.bb.a);
    	test("ss.bb.b", ss.bb.b);
    	test("ss.bb.c", ss.bb.c);
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 4.3K bytes
    - Viewed (0)
  3. test/typeparam/issue51303.go

    	IntersectSS(x, y)
    }
    
    type list[E any] interface {
    	~[]E
    	Equal(x, y E) bool
    }
    
    // ss is a set of sets
    type ss[E comparable, T []E] []T
    
    func (ss[E, T]) Equal(a, b T) bool {
    	return SetEq(a, b)
    }
    
    func IntersectSS[E comparable](x, y [][]E) [][]E {
    	return IntersectT[[]E, ss[E, []E]](ss[E, []E](x), ss[E, []E](y))
    }
    
    func IntersectT[E any, L list[E]](x, y L) L {
    	var z L
    outer:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  4. src/sort/sort_slices_benchmark_test.go

    }
    
    func TestStructSorts(t *testing.T) {
    	ss := makeRandomStructs(200)
    	ss2 := make([]*myStruct, len(ss))
    	for i := range ss {
    		ss2[i] = &myStruct{n: ss[i].n}
    	}
    
    	Sort(ss)
    	slices.SortFunc(ss2, func(a, b *myStruct) int { return a.n - b.n })
    
    	for i := range ss {
    		if *ss[i] != *ss2[i] {
    			t.Fatalf("ints2 mismatch at %d; %v != %v", i, *ss[i], *ss2[i])
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 22:59:40 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. pilot/pkg/xds/debug_test.go

    		} else {
    			errorHandler = t.Logf
    		}
    		for _, ss := range gotStatus {
    			if ss.ProxyID == nodeID {
    				if ss.ProxyVersion == "" {
    					errorHandler("ProxyVersion should always be set for %v", nodeID)
    				}
    				if (ss.ClusterSent != "") != wantSent {
    					errorHandler("wanted ClusterSent set %v got %v for %v", wantSent, ss.ClusterSent, nodeID)
    				}
    				if (ss.ClusterAcked != "") != wantAcked {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/seat_seconds_test.go

    func TestSeatSecondsString(t *testing.T) {
    	testCases := []struct {
    		ss          SeatSeconds
    		expectFloat float64
    		expectStr   string
    	}{
    		{ss: SeatSeconds(1), expectFloat: 1.0 / ssScale, expectStr: "0.00000001ss"},
    		{ss: SeatSeconds(ssScale - 1), expectFloat: (ssScale - 1) / ssScale, expectStr: "0.99999999ss"},
    		{ss: 0, expectFloat: 0, expectStr: "0.00000000ss"},
    		{ss: SeatsTimesDuration(1, time.Second), expectFloat: 1, expectStr: "1.00000000ss"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 29 20:20:16 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  7. okhttp/src/test/resources/web-platform-test-toascii.json

      },
      {
        "input": "-x.ß",
        "output": "-x.xn--zca"
      },
      {
        "comment": "Label with trailing hyphen",
        "input": "x-.xn--zca",
        "output": "x-.xn--zca"
      },
      {
        "input": "x-.ß",
        "output": "x-.xn--zca"
      },
      {
        "comment": "Empty labels",
        "input": "x..xn--zca",
        "output": "x..xn--zca"
      },
      {
        "input": "x..ß",
        "output": "x..xn--zca"
      },
      {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  8. src/go/token/serialize.go

    func (s *FileSet) Read(decode func(any) error) error {
    	var ss serializedFileSet
    	if err := decode(&ss); err != nil {
    		return err
    	}
    
    	s.mutex.Lock()
    	s.base = ss.Base
    	files := make([]*File, len(ss.Files))
    	for i := 0; i < len(ss.Files); i++ {
    		f := &ss.Files[i]
    		files[i] = &File{
    			name:  f.Name,
    			base:  f.Base,
    			size:  f.Size,
    			lines: f.Lines,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 29 22:19:48 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  9. test/fixedbugs/issue8606b.go

    		a, b interface{}
    	}{
    		{SI{s: bad1, i: 1}, SI{s: bad2, i: 2}},
    		{SS{s: bad1, t: "a"}, SS{s: bad2, t: "aa"}},
    		{SS{s: "a", t: bad1}, SS{s: "b", t: bad2}},
    		// This one would panic because the length of both strings match, and we check
    		// the body of the bad strings before the body of the good strings.
    		//{SS{s: bad1, t: "a"}, SS{s: bad2, t: "b"}},
    	} {
    		if test.a == test.b {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/seat_seconds.go

    // ToFloat converts to a floating-point representation.
    // This conversion may lose precision.
    func (ss SeatSeconds) ToFloat() float64 {
    	return float64(ss) / ssScale
    }
    
    // DurationPerSeat returns duration per seat.
    // This division may lose precision.
    func (ss SeatSeconds) DurationPerSeat(seats float64) time.Duration {
    	return time.Duration(float64(ss) / seats * (float64(time.Second) / ssScale))
    }
    
    // String converts to a string.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 09:16:46 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top