Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 239 for sS (0.02 sec)

  1. 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)
  2. src/crypto/tls/ticket.go

    		ss.verifiedChains = append(ss.verifiedChains, chain)
    	}
    	if ss.EarlyData {
    		var alpn []byte
    		if !readUint8LengthPrefixed(&s, &alpn) {
    			return nil, errors.New("tls: invalid session encoding")
    		}
    		ss.alpnProtocol = string(alpn)
    	}
    	if isClient := typ == 2; !isClient {
    		if !s.Empty() {
    			return nil, errors.New("tls: invalid session encoding")
    		}
    		return ss, nil
    	}
    	ss.isClient = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. pkg/registry/apps/statefulset/strategy_test.go

    	}
    
    	errs := Strategy.Validate(ctx, ss)
    	if len(errs) != 0 {
    		t.Errorf("Strategy.Validate(%v) returned error: %v", ss, errs)
    	}
    
    	if ss.Generation != 1 {
    		t.Errorf("Generation = %v, want = 1 for StatefulSet: %v", ss.Generation, ss)
    	}
    
    	// Validate that the ordinals field is retained when StatefulSetStartOridnal is disabled.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  4. src/internal/profile/profile.go

    // for debugging purposes.
    func (p *Profile) String() string {
    
    	ss := make([]string, 0, len(p.Sample)+len(p.Mapping)+len(p.Location))
    	if pt := p.PeriodType; pt != nil {
    		ss = append(ss, fmt.Sprintf("PeriodType: %s %s", pt.Type, pt.Unit))
    	}
    	ss = append(ss, fmt.Sprintf("Period: %d", p.Period))
    	if p.TimeNanos != 0 {
    		ss = append(ss, fmt.Sprintf("Time: %v", time.Unix(0, p.TimeNanos)))
    	}
    	if p.DurationNanos != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 17:57:40 UTC 2024
    - 13.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. tensorflow/compiler/mlir/tensorflow/translate/mlir_roundtrip_flags.cc

      ss << "\nprune_unused_nodes: " << prune_unused_nodes;
      ss << "\nconvert_legacy_fed_inputs: " << convert_legacy_fed_inputs;
      ss << "\ngraph_as_function: " << graph_as_function;
      ss << "\nupgrade_legacy: " << upgrade_legacy;
      ss << "\nrestrict_functionalization_to_compiled_nodes: "
         << restrict_functionalization_to_compiled_nodes;
      ss << "\nenable_shape_inference: " << enable_shape_inference;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 10.4K 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. 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)
  9. 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)
  10. src/cmd/internal/obj/riscv/list.go

    	}
    }
    
    func opSuffixString(s uint8) string {
    	if s&rmSuffixBit == 0 {
    		return ""
    	}
    
    	ss, err := rmSuffixString(s)
    	if err != nil {
    		ss = fmt.Sprintf("<invalid 0x%x>", s)
    	}
    	if ss == "" {
    		return ss
    	}
    	return fmt.Sprintf(".%s", ss)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 14:34:57 UTC 2024
    - 959 bytes
    - Viewed (0)
Back to top