Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 76 for testfunc (0.54 sec)

  1. src/cmd/go/internal/test/testflag.go

    	cf.String("blockprofilerate", "", "")
    	cf.Int("count", 0, "")
    	cf.String("cpu", "", "")
    	cf.StringVar(&testCPUProfile, "cpuprofile", "", "")
    	cf.BoolVar(&testFailFast, "failfast", false, "")
    	cf.StringVar(&testFuzz, "fuzz", "", "")
    	cf.Bool("fullpath", false, "")
    	cf.StringVar(&testList, "list", "", "")
    	cf.StringVar(&testMemProfile, "memprofile", "", "")
    	cf.String("memprofilerate", "", "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. pkg/test/framework/components/echo/echotest/filters_test.go

    		delete(expected, k)
    		if _, ok := unexpected[k]; ok {
    			t.Errorf("expected %s to be filtered out", k)
    		}
    	}
    	if len(expected) > 0 {
    		t.Errorf("did not include %v", expected)
    	}
    }
    
    func TestRun(t *testing.T) {
    	// source svc/cluster -> dest services -> number of subtests (should == num clusters)
    	framework.NewTest(t).Run(func(t framework.TestContext) {
    		tests := map[string]struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. pkg/controller/volume/persistentvolume/recycle_test.go

    }
    
    // Test multiple calls to syncClaim/syncVolume and periodic sync of all
    // volume/claims. The test follows this pattern:
    //  0. Load the controller with initial data.
    //  1. Call controllerTest.testCall() once as in TestSync()
    //  2. For all volumes/claims changed by previous syncVolume/syncClaim calls,
    //     call appropriate syncVolume/syncClaim (simulating "volume/claim changed"
    //     events). Go to 2. if these calls change anything.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/controller_test.go

    	// Set up fake informers that return instances of mock Policy definitoins
    	// and mock policy bindings
    	informer = &testInformer{SharedIndexInformer: cache.NewSharedIndexInformer(&cache.ListWatch{
    		ListFunc: func(options metav1.ListOptions) (runtime.Object, error) {
    			return tracker.List(fakeGVR, fakeGVK, "")
    		},
    		WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
    			return tracker.Watch(fakeGVR, "")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  5. cmd/kube-proxy/app/server_linux.go

    	ctx, cancelFunc := context.WithTimeout(ctx, timeoutForNodePodCIDR)
    	defer cancelFunc()
    
    	fieldSelector := fields.OneTermEqualSelector("metadata.name", nodeName).String()
    	lw := &cache.ListWatch{
    		ListFunc: func(options metav1.ListOptions) (object runtime.Object, e error) {
    			options.FieldSelector = fieldSelector
    			return client.CoreV1().Nodes().List(ctx, options)
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  6. src/regexp/find_test.go

    		ret[i] = make([]int, runLength)
    		copy(ret[i], x[j:])
    		j += runLength
    		if j > len(x) {
    			panic("invalid build entry")
    		}
    	}
    	return ret
    }
    
    // First the simple cases.
    
    func TestFind(t *testing.T) {
    	for _, test := range findTests {
    		re := MustCompile(test.pat)
    		if re.String() != test.pat {
    			t.Errorf("String() = `%s`; should be `%s`", re.String(), test.pat)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 11 15:28:50 UTC 2021
    - 16.3K bytes
    - Viewed (0)
  7. src/path/filepath/path_windows_test.go

    		if err != nil {
    			t.Errorf("toNorm(%s) failed: %v (wd=%s)\n", arg, err, wd)
    		} else if got != want {
    			t.Errorf("toNorm(%s) returns %s, but %s expected (wd=%s)\n", arg, got, want, wd)
    		}
    	}
    }
    
    func TestUNC(t *testing.T) {
    	// Test that this doesn't go into an infinite recursion.
    	// See golang.org/issue/15879.
    	defer debug.SetMaxStack(debug.SetMaxStack(1e6))
    	filepath.Glob(`\\?\c:\*`)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:38:54 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  8. src/syscall/js/js_test.go

    		t.Errorf("got %v, want %v", got, 42)
    	}
    }
    
    func TestZeroValue(t *testing.T) {
    	var v js.Value
    	if !v.IsUndefined() {
    		t.Error("zero js.Value is not js.Undefined()")
    	}
    }
    
    func TestFuncOf(t *testing.T) {
    	c := make(chan struct{})
    	cb := js.FuncOf(func(this js.Value, args []js.Value) any {
    		if got := args[0].Int(); got != 42 {
    			t.Errorf("got %#v, want %#v", got, 42)
    		}
    		c <- struct{}{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

      // Look up function definition from module.
      mlir::func::FuncOp func =
          cluster_func->getParentOfType<ModuleOp>()
              .lookupSymbol<mlir::func::FuncOp>(cluster_func.getFunc());
    
      bool use_spmd = false;
      if (auto use_spmd_attr = cluster_func->getAttrOfType<BoolAttr>(kUseSpmdAttr))
        use_spmd = use_spmd_attr.getValue();
    
      auto num_cores_per_replica_attr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  10. pkg/config/schema/kubeclient/resources.gen.go

    		}
    	default:
    		panic(fmt.Sprintf("Unknown type %v", g))
    	}
    	return c.Informers().InformerFor(g, opts, func() cache.SharedIndexInformer {
    		inf := cache.NewSharedIndexInformer(
    			&cache.ListWatch{
    				ListFunc: func(options metav1.ListOptions) (runtime.Object, error) {
    					options.FieldSelector = opts.FieldSelector
    					options.LabelSelector = opts.LabelSelector
    					return l(options)
    				},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 13:57:51 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top