- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 351 for dtoi (0.05 sec)
-
pkg/istio-agent/health/health_check_test.go
} httpServerEventCount++ })) host, ports, err := net.SplitHostPort(strings.TrimPrefix(sss.URL, "http://")) if err != nil { t.Fatal(err) } port, err := strconv.Atoi(ports) if err != nil { t.Fatal(err) } t.Cleanup(sss.Close) httpHealthChecker := NewWorkloadHealthChecker(&v1alpha3.ReadinessProbe{ InitialDelaySeconds: 0, TimeoutSeconds: 1,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 09 16:50:11 UTC 2023 - 6.3K bytes - Viewed (0) -
pkg/probe/grpc/grpc_test.go
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, "res") })) u := strings.Split(server.URL, ":") assert.Equal(t, 3, len(u)) port, err := strconv.Atoi(u[2]) assert.Equal(t, nil, err) // take some time to wait server boot time.Sleep(2 * time.Second) p, _, err := s.Probe("127.0.0.1", "", port, time.Second) assert.Equal(t, probe.Failure, p)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Nov 20 00:23:53 UTC 2021 - 5.7K bytes - Viewed (0) -
src/time/format.go
b[i] = utod(u - q*10) u = q i-- } b[i] = utod(u) return b } // Never printed, just needs to be non-nil for return by atoi. var errAtoi = errors.New("time: invalid number") // Duplicates functionality in strconv, but avoids dependency. func atoi[bytes []byte | string](s bytes) (x int, err error) { neg := false if len(s) > 0 && (s[0] == '-' || s[0] == '+') { neg = s[0] == '-' s = s[1:]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:09:28 UTC 2024 - 49.3K bytes - Viewed (0) -
src/regexp/exec_test.go
pair := res[i:j] if pair == "-" { out[n] = -1 out[n+1] = -1 } else { loStr, hiStr, _ := strings.Cut(pair, "-") lo, err1 := strconv.Atoi(loStr) hi, err2 := strconv.Atoi(hiStr) if err1 != nil || err2 != nil || lo > hi { t.Fatalf("%s:%d: invalid pair %s", file, lineno, pair) } out[n] = lo out[n+1] = hi } n += 2 i = j + 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:36:03 UTC 2024 - 20.7K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/binutils/addr2liner.go
fileline = fileline[:disc] } // If we cannot parse a number after the last ":", keep it as // part of the filename. if line, err := strconv.Atoi(fileline[i+1:]); err == nil { linenumber = line fileline = fileline[:i] } } } return plugin.Frame{ Func: funcname, File: fileline, Line: linenumber}, false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 16:39:48 UTC 2023 - 5.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/conversion/converter_test.go
t.Errorf("expected %#v, got %#v", e, a) } } func TestConverter_MismatchedTypes(t *testing.T) { c := NewConverter(nil) convertFn := func(in *[]string, out *int, s Scope) error { if str, err := strconv.Atoi((*in)[0]); err != nil { return err } else { *out = str return nil } } if err := c.RegisterUntypedConversionFunc( (*[]string)(nil), (*int)(nil), func(a, b interface{}, s Scope) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 06 06:28:24 UTC 2021 - 6.7K bytes - Viewed (0) -
src/internal/coverage/pods/pods.go
for k, f := range files { base := filepath.Base(f) if m := counterRE.FindStringSubmatch(base); m != nil { tag := m[1] // meta hash pid, err := strconv.Atoi(m[2]) if err != nil { continue } if v, ok := mm[tag]; ok { idx := -1 if dirIndices != nil { idx = dirIndices[k] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.6K bytes - Viewed (0) -
internal/etag/etag.go
// // Parts may panic if the ETag is an invalid multipart // ETag. func (e ETag) Parts() int { if !e.IsMultipart() { return 1 } n := bytes.IndexRune(e, '-') parts, err := strconv.Atoi(string(e[n+1:])) if err != nil { panic(err) // malformed ETag } return parts } // Format returns an ETag that is formatted as specified // by AWS S3. //
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Mar 10 21:09:36 UTC 2024 - 13.3K bytes - Viewed (0) -
src/runtime/runtime1.go
} // Update MemProfileRate directly here since it // is int, not int32, and should only be updated // if specified in GODEBUG. if seen == nil && key == "memprofilerate" { if n, ok := atoi(value); ok { MemProfileRate = n } } else { for _, v := range dbgvars { if v.name == key { if n, ok := atoi32(value); ok { if seen == nil && v.value != nil { *v.value = n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 19.3K bytes - Viewed (0) -
pkg/controller/ttl/ttl_controller.go
if node.Annotations == nil { return 0, false } annotationValue, ok := node.Annotations[annotationKey] if !ok { return 0, false } intValue, err := strconv.Atoi(annotationValue) if err != nil { logger := klog.FromContext(ctx) logger.Info("Could not convert the value with annotation key for the node", "annotationValue",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 8.5K bytes - Viewed (0)