Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,732 for fmtF (0.04 sec)

  1. pkg/test/loadbalancersim/lb_test.go

    func (tm testMetrics) String() string {
    	out := ""
    	out += fmt.Sprintf("      Requests: %d\n", tm.totalRequests())
    	out += fmt.Sprintf("      Topology: Same Zone=%d, Same Region=%d, Other Region=%d\n", tm.nodesSameZone, tm.nodesSameRegion, tm.nodesOtherRegion)
    	out += fmt.Sprintf("Latency  (min): %8.3fs\n", tm.latencyMin)
    	out += fmt.Sprintf("Latency  (avg): %8.3fs\n", tm.latencyAvg)
    	out += fmt.Sprintf("Latency  (max): %8.3fs\n", tm.latencyMax)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 19 23:29:30 UTC 2022
    - 11K bytes
    - Viewed (0)
  2. src/go/doc/testdata/testing.go

    	exampleOk := RunExamples(examples)
    	if !testOk || !exampleOk {
    		fmt.Println("FAIL")
    		os.Exit(1)
    	}
    	fmt.Println("PASS")
    	stopAlarm()
    	RunBenchmarks(matchString, benchmarks)
    	after()
    }
    
    func (t *T) report() {
    	tstr := fmt.Sprintf("(%.2f seconds)", t.duration.Seconds())
    	format := "--- %s: %s %s\n%s"
    	if t.failed {
    		fmt.Printf(format, "FAIL", t.name, tstr, t.output)
    	} else if *chatty {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  3. pkg/log/scope.go

    	for k, v := range scopes {
    		s[k] = v
    	}
    
    	return s
    }
    
    // Fatal uses fmt.Sprint to construct and log a message at fatal level.
    func (s *Scope) Fatal(msg any) {
    	if s.GetOutputLevel() >= FatalLevel {
    		s.emit(zapcore.FatalLevel, fmt.Sprint(msg))
    	}
    }
    
    // Fatalf uses fmt.Sprintf to construct and log a message at fatal level.
    func (s *Scope) Fatalf(format string, args ...any) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 16:47:01 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/errors/errors_test.go

    		},
    		{
    			name:           "Nested match",
    			err:            fmt.Errorf("wrapping: %w", fmt.Errorf("some more: %w", &StatusError{ErrStatus: metav1.Status{Reason: metav1.StatusReasonAlreadyExists}})),
    			expectedReason: metav1.StatusReasonAlreadyExists,
    		},
    		{
    			name:           "Nested, no match",
    			err:            fmt.Errorf("wrapping: %w", fmt.Errorf("some more: %w", errors.New("hello"))),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  5. src/cmd/trace/main.go

    			f = pprofByGoroutine(computePprofSched(), parsed)
    		default:
    			logAndDie(fmt.Errorf("unknown pprof type %s\n", *pprofFlag))
    		}
    		records, err := f(&http.Request{})
    		if err != nil {
    			logAndDie(fmt.Errorf("failed to generate pprof: %v\n", err))
    		}
    		if err := traceviewer.BuildProfile(records).Write(os.Stdout); err != nil {
    			logAndDie(fmt.Errorf("failed to generate pprof: %v\n", err))
    		}
    		logAndDie(nil)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. pkg/kubeapiserver/options/authorization.go

    			allErrors = append(allErrors, fmt.Errorf("authorization-mode ABAC's authorization policy file not passed"))
    		}
    		if mode == authzmodes.ModeWebhook && o.WebhookConfigFile == "" {
    			allErrors = append(allErrors, fmt.Errorf("authorization-mode Webhook's authorization config file not passed"))
    		}
    	}
    
    	if o.PolicyFile != "" && !modes.Has(authzmodes.ModeABAC) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 23:09:15 UTC 2024
    - 12K bytes
    - Viewed (0)
  7. pkg/wasm/convert.go

    	wasmNetwork := false
    	if err := resource.UnmarshalTo(ec); err != nil {
    		return nil, nil, nil, fmt.Errorf("failed to unmarshal extension config resource: %w", err)
    	}
    
    	// Wasm filter can be configured using typed struct and Wasm filter type
    	switch {
    	case ec.GetTypedConfig() == nil:
    		return nil, nil, nil, fmt.Errorf("typed extension config %+v does not contain any typed config", ec)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. pkg/proxy/ipvs/ipset/ipset.go

    	strs := strings.Split(portRange, "-")
    	if len(strs) != 2 {
    		return fmt.Errorf("invalid PortRange: %q", portRange)
    	}
    	for i := range strs {
    		num, err := strconv.Atoi(strs[i])
    		if err != nil {
    			return fmt.Errorf("invalid PortRange: %q", portRange)
    		}
    		if num < 0 {
    			return fmt.Errorf("invalid PortRange: %q", portRange)
    		}
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  9. src/log/log.go

    // Arguments are handled in the manner of [fmt.Print].
    func (l *Logger) Print(v ...any) {
    	l.output(0, 2, func(b []byte) []byte {
    		return fmt.Append(b, v...)
    	})
    }
    
    // Printf calls l.Output to print to the logger.
    // Arguments are handled in the manner of [fmt.Printf].
    func (l *Logger) Printf(format string, v ...any) {
    	l.output(0, 2, func(b []byte) []byte {
    		return fmt.Appendf(b, format, v...)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 22:56:07 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  10. pkg/volume/git_repo/git_repo_test.go

    		if os.IsNotExist(err) {
    			allErrs = append(allErrs,
    				fmt.Errorf("SetUp() failed, volume path not created: %s", path))
    			return allErrs
    		}
    		allErrs = append(allErrs,
    			fmt.Errorf("SetUp() failed: %v", err))
    		return allErrs
    
    	}
    
    	// gitRepo volume should create its own empty wrapper path
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 08:26:26 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top