Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 266 for findAny (0.14 sec)

  1. src/log/slog/internal/benchmarks/handlers.go

    	case slog.KindBool:
    		*buf = strconv.AppendBool(*buf, v.Bool())
    	case slog.KindDuration:
    		*buf = strconv.AppendInt(*buf, v.Duration().Nanoseconds(), 10)
    	case slog.KindTime:
    		h.appendTime(buf, v.Time())
    	case slog.KindAny:
    		a := v.Any()
    		switch a := a.(type) {
    		case error:
    			buf.WriteString(a.Error())
    		default:
    			fmt.Fprint(buf, a)
    		}
    	default:
    		panic(fmt.Sprintf("bad kind: %s", v.Kind()))
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 12 20:33:37 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. operator/pkg/translate/translate_common.go

    	}
    	valuePath := cnMap.ToHelmValuesTreeRoot
    	enabledPath := valuePath + ".enabled"
    	enableNodeI, found, err := tpath.Find(valueSpec, util.ToYAMLPath(enabledPath))
    	if err != nil {
    		return false, false, fmt.Errorf("error finding component enablement path: %s in helm value.yaml tree", enabledPath)
    	}
    	if !found {
    		// Some components do not specify enablement should be treated as enabled if the root node in the component subtree exists.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/list_goroot_symlink.txt

    symlink $WORK/share/goroot/src -> $GOROOT${/}src
    symlink $WORK/lib/goroot/src -> ../../share/goroot/src
    symlink $WORK/lib/goroot/pkg -> $GOROOT${/}pkg
    
    # Verify that our symlink shenanigans don't prevent cmd/go from finding its
    # GOROOT using os.Executable.
    #
    # To do so, we copy the actual cmd/go executable — which is implemented as the
    # cmd/go test binary instead of the original $GOROOT/bin/go, which may be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 17:01:07 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. src/io/fs/walk_test.go

    		if clear {
    			return nil
    		}
    		return err
    	}
    	return nil
    }
    
    func TestWalkDir(t *testing.T) {
    	tmpDir := t.TempDir()
    
    	origDir, err := os.Getwd()
    	if err != nil {
    		t.Fatal("finding working dir:", err)
    	}
    	if err = os.Chdir(tmpDir); err != nil {
    		t.Fatal("entering temp dir:", err)
    	}
    	defer os.Chdir(origDir)
    
    	fsys := makeTree()
    	errors := make([]error, 0, 10)
    	clear := true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 15:21:18 UTC 2022
    - 3K bytes
    - Viewed (0)
  5. pkg/kubelet/preemption/preemption.go

    // minimal impact for guaranteed pods > minimal impact for burstable pods > minimal impact for besteffort pods.
    // minimal impact is defined as follows: fewest pods evicted > fewest total requests of pods.
    // finding the fewest total requests of pods is considered besteffort.
    type CriticalPodAdmissionHandler struct {
    	getPodsFunc eviction.ActivePodsFunc
    	killPodFunc eviction.KillPodFunc
    	recorder    record.EventRecorder
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 16:53:19 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  6. pkg/volume/metrics_du_test.go

    	}
    	defer os.RemoveAll(tmpDir)
    	metrics := NewMetricsDu(tmpDir)
    
    	expectedEmptyDirUsage, err := volumetest.FindEmptyDirectoryUsageOnTmpfs()
    	if err != nil {
    		t.Errorf("Unexpected error finding expected empty directory usage on tmpfs: %v", err)
    	}
    
    	actual, err := metrics.GetMetrics()
    	if err != nil {
    		t.Errorf("Unexpected error when calling GetMetrics %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/storage/storage_factory.go

    	// of exposing one set of concepts.  autoscaling.HPA and extensions.HPA as a for instance
    	// The order of the slice matters!  It is the priority order of lookup for finding a storage location
    	cohabitatingResources []schema.GroupResource
    	// encoderDecoratorFn is optional and may wrap the provided encoder prior to being serialized.
    	encoderDecoratorFn func(runtime.Encoder) runtime.Encoder
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 13:35:58 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  8. internal/s3select/sql/jsonpath.go

    				if kv.Key == key {
    					return jsonpathEval(p[1:], kv.Value)
    				}
    			}
    			// Key not found - return nil result
    			return Missing{}, false, nil
    		case simdjson.Object:
    			elem := kvs.FindKey(key, nil)
    			if elem == nil {
    				// Key not found - return nil result
    				return Missing{}, false, nil
    			}
    			val, err := IterToValue(elem.Iter)
    			if err != nil {
    				return nil, false, err
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. src/testing/quick/quick.go

    func (s SetupError) Error() string { return string(s) }
    
    // A CheckError is the result of Check finding an error.
    type CheckError struct {
    	Count int
    	In    []any
    }
    
    func (s *CheckError) Error() string {
    	return fmt.Sprintf("#%d: failed on input %s", s.Count, toString(s.In))
    }
    
    // A CheckEqualError is the result [CheckEqual] finding an error.
    type CheckEqualError struct {
    	CheckError
    	Out1 []any
    	Out2 []any
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  10. pkg/api/v1/pod/util_test.go

    		t.Logf("Missing expected secret paths:\n%s", strings.Join(sets.List[string](missingPaths), "\n"))
    		t.Error("Missing expected secret paths. Verify VisitPodSecretNames() is correctly finding the missing paths, then correct expectedSecretPaths")
    	}
    	if extraPaths := secretPaths.Difference(expectedSecretPaths); len(extraPaths) > 0 {
    		t.Logf("Extra secret paths:\n%s", strings.Join(sets.List(extraPaths), "\n"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 32.1K bytes
    - Viewed (0)
Back to top