Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for Testfunc (0.16 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/resource/helper_test.go

    		name        string
    		initialOpts *metav1.ListOptions
    		tokensSeen  []string
    		listFunc    func(metav1.ListOptions) (runtime.Object, error)
    
    		expectedTokens []string
    		wantErr        string
    	}{
    		{
    			name:        "updates list options with continue token until list finished",
    			initialOpts: &metav1.ListOptions{},
    			listFunc: func(options metav1.ListOptions) (runtime.Object, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  2. internal/s3select/sql/parser.go

    // CountFunc represents the COUNT sql function
    type CountFunc struct {
    	StarArg bool        `parser:" \"COUNT\" \"(\" ( @\"*\"?"`
    	ExprArg *Expression `parser:" @@? )! \")\""`
    }
    
    // CastFunc represents CAST sql function
    type CastFunc struct {
    	Expr     *Expression `parser:" \"CAST\" \"(\" @@ "`
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  3. pkg/kubelet/util/manager/watch_based_manager.go

    		options.FieldSelector = fieldSelector
    		return c.watchObject(namespace, options)
    	}
    	store := c.newStore()
    	reflector := cache.NewReflectorWithOptions(
    		&cache.ListWatch{ListFunc: listFunc, WatchFunc: watchFunc},
    		c.newObject(),
    		store,
    		cache.ReflectorOptions{
    			Name: fmt.Sprintf("object-%q/%q", namespace, name),
    			// Bump default 5m MinWatchTimeout to avoid recreating
    			// watches too often.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. pkg/controller/daemon/util/daemonset_util_test.go

    				featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, fg, f)
    				t.Run(fmt.Sprintf("%v (%t)", fg, f), tf)
    			}()
    		}
    	}
    }
    
    func TestGetTargetNodeName(t *testing.T) {
    	testFun := func(t *testing.T) {
    		tests := []struct {
    			pod         *v1.Pod
    			nodeName    string
    			expectedErr bool
    		}{
    			{
    				pod: &v1.Pod{
    					ObjectMeta: metav1.ObjectMeta{
    						Name:      "pod1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/quota/v1/generic/evaluator.go

    	listFunc ListFuncByNamespace,
    	scopeFunc MatchesScopeFunc,
    	usageFunc UsageFunc) (quota.UsageStats, error) {
    	// default each tracked resource to zero
    	result := quota.UsageStats{Used: corev1.ResourceList{}}
    	for _, resourceName := range options.Resources {
    		result.Used[resourceName] = resource.Quantity{Format: resource.DecimalSI}
    	}
    	items, err := listFunc(options.Namespace)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 05 00:02:47 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/resource/helper.go

    // should include a non-zero Limit parameter.
    func FollowContinue(initialOpts *metav1.ListOptions,
    	listFunc func(metav1.ListOptions) (runtime.Object, error)) error {
    	opts := initialOpts
    	for {
    		list, err := listFunc(*opts)
    		if err != nil {
    			return err
    		}
    		nextContinueToken, _ := metadataAccessor.Continue(list)
    		if len(nextContinueToken) == 0 {
    			return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 26 03:45:13 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  7. src/debug/elf/symbols_test.go

    package elf
    
    import (
    	"io"
    	"path"
    	"reflect"
    	"testing"
    )
    
    // TODO: remove duplicate code
    func TestSymbols(t *testing.T) {
    	do := func(file string, ts []Symbol, getfunc func(*File) ([]Symbol, error)) {
    		var f *File
    		var err error
    		if path.Ext(file) == ".gz" {
    			var r io.ReaderAt
    			if r, err = decompress(file); err == nil {
    				f, err = NewFile(r)
    			}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 05 18:18:26 UTC 2019
    - 13.4K bytes
    - Viewed (0)
  8. src/internal/coverage/decodecounter/decodecounterfile.go

    }
    
    const supportDeadFunctionsInCounterData = false
    
    // NextFunc reads data for the next function in this current segment
    // into "p", returning TRUE if the read was successful or FALSE
    // if we've read all the functions already (also an error if
    // something went wrong with the read or we hit a premature
    // EOF).
    func (cdr *CounterDataReader) NextFunc(p *FuncPayload) (bool, error) {
    	if cdr.fcnCount >= uint32(cdr.shdr.FcnEntries) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 15:29:54 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/pcln.go

    		sb.SetUint32(ctxt.Arch, int64((i*2+1)*4), startLocations[i])
    	}
    
    	// Final entry of table is just end pc offset.
    	lastFunc := funcs[len(funcs)-1]
    	sb.SetUint32(ctxt.Arch, int64(len(funcs))*2*4, pcOff(lastFunc)+uint32(ldr.SymSize(lastFunc)))
    }
    
    // writeFuncs writes the func structures and pcdata to runtime.functab.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  10. src/cmd/trace/gstate.go

    // in some way, but it doesn't really matter which stack.
    func (gs *gState[R]) augmentName(stk trace.Stack) {
    	if gs.named {
    		return
    	}
    	if stk == trace.NoStack {
    		return
    	}
    	name := lastFunc(stk)
    	gs.baseName += fmt.Sprintf(" %s", name)
    	gs.named = true
    	gs.isSystemG = trace.IsSystemGoroutine(name)
    }
    
    // setLabel adds an additional label to the goroutine's name.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
Back to top