Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 82 for newFunc (0.25 sec)

  1. pkg/kubelet/nodestatus/setters_test.go

    				"Diff: %s", cmp.Diff(expectNode, node))
    		})
    	}
    
    }
    
    func TestReadyCondition(t *testing.T) {
    	now := time.Now()
    	before := now.Add(-time.Second)
    	nowFunc := func() time.Time { return now }
    
    	withCapacity := &v1.Node{
    		Status: v1.NodeStatus{
    			Capacity: v1.ResourceList{
    				v1.ResourceCPU:              *resource.NewMilliQuantity(2000, resource.DecimalSI),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  2. pkg/registry/core/persistentvolume/storage/storage_test.go

    	hostPathType := new(api.HostPathType)
    	*hostPathType = api.HostPathType(pathType)
    	return hostPathType
    }
    
    func validNewPersistentVolume(name string) *api.PersistentVolume {
    	now := persistentvolume.NowFunc()
    	pv := &api.PersistentVolume{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: name,
    		},
    		Spec: api.PersistentVolumeSpec{
    			Capacity: api.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. src/database/sql/sql.go

    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname drivers
    var drivers = make(map[string]driver.Driver)
    
    // nowFunc returns the current time; it's overridden in tests.
    var nowFunc = time.Now
    
    // Register makes a database driver available by the provided name.
    // If Register is called twice with the same name or if driver is nil,
    // it panics.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/TestDB.h

     *  returned if the function succeeds, or CUE_NOTEST if either pTest or
     *  pNewFunc is NULL.
     *
     *  @param pTest    Pointer to the test to modify (non-NULL).
     *  @param pNewFunc Pointer to function to use for test function (non-NULL).
     *  @return Returns CUE_NOTEST if pTest or pNewFunc is NULL, and CUE_SUCCESS 
     *          if all is well.
     */
    
    CU_EXPORT 
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 40.4K bytes
    - Viewed (0)
  5. callbacks/create.go

    				}
    			}
    			return called
    		})
    	}
    }
    
    // ConvertToCreateValues convert to create values
    func ConvertToCreateValues(stmt *gorm.Statement) (values clause.Values) {
    	curTime := stmt.DB.NowFunc()
    
    	switch value := stmt.Dest.(type) {
    	case map[string]interface{}:
    		values = ConvertMapToValuesForCreate(stmt, value)
    	case *map[string]interface{}:
    		values = ConvertMapToValuesForCreate(stmt, *value)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 08 03:29:55 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  6. src/database/sql/sql_test.go

    		t.Errorf("stats.OpenConnections = %d; want 0", got)
    	}
    }
    
    func TestConnMaxLifetime(t *testing.T) {
    	t0 := time.Unix(1000000, 0)
    	offset := time.Duration(0)
    
    	nowFunc = func() time.Time { return t0.Add(offset) }
    	defer func() { nowFunc = time.Now }()
    
    	db := newTestDB(t, "magicquery")
    	defer closeDB(t, db)
    
    	driver := db.Driver().(*fakeDriver)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssagen/ssa.go

    		}
    	}
    
    	fe := ssafn{
    		curfn: fn,
    		log:   printssa && ssaDumpStdout,
    	}
    	s.curfn = fn
    
    	cache := &ssaCaches[worker]
    	cache.Reset()
    
    	s.f = ssaConfig.NewFunc(&fe, cache)
    	s.config = ssaConfig
    	s.f.Type = fn.Type()
    	s.f.Name = name
    	s.f.PrintOrHtmlSSA = printssa
    	if fn.Pragma&ir.Nosplit != 0 {
    		s.f.NoSplit = true
    	}
    	s.f.ABI0 = ssaConfig.ABI0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

      auto caller = MakeFuncCaller(builder, module.getLoc(), new_func,
                                   inputs.getArrayRef(), flag_for_inlining);
    
      Block* block = new_func.addEntryBlock();
      for (Operation* op : topological_order) op->moveBefore(block, block->end());
    
      // Replace the 'inputs' values with the new function's arguments.
      for (auto p : llvm::zip(inputs, new_func.getArguments()))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    	}
    }
    
    func Test_kmsv2PluginProbe_rotateDEKOnKeyIDChange(t *testing.T) {
    	defaultUseSeed := GetKDF()
    
    	origNowFunc := envelopekmsv2.NowFunc
    	now := origNowFunc() // freeze time
    	t.Cleanup(func() { envelopekmsv2.NowFunc = origNowFunc })
    	envelopekmsv2.NowFunc = func() time.Time { return now }
    
    	klog.LogToStderr(false)
    	var level klog.Level
    	if err := level.Set("6"); err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"NewAlias", Func, 22},
    		{"NewArray", Func, 5},
    		{"NewChan", Func, 5},
    		{"NewChecker", Func, 5},
    		{"NewConst", Func, 5},
    		{"NewContext", Func, 18},
    		{"NewField", Func, 5},
    		{"NewFunc", Func, 5},
    		{"NewInterface", Func, 5},
    		{"NewInterfaceType", Func, 11},
    		{"NewLabel", Func, 5},
    		{"NewMap", Func, 5},
    		{"NewMethodSet", Func, 5},
    		{"NewNamed", Func, 5},
    		{"NewPackage", Func, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top