Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 150 for newFunc (0.28 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. tests/create_test.go

    }
    
    func TestCreateWithNowFuncOverride(t *testing.T) {
    	user := User{Name: "CreateUserTimestampOverride"}
    	curTime := now.MustParse("2016-01-01")
    
    	NEW := DB.Session(&gorm.Session{
    		NowFunc: func() time.Time {
    			return curTime
    		},
    	})
    
    	NEW.Save(&user)
    
    	AssertEqual(t, user.CreatedAt, curTime)
    	AssertEqual(t, user.UpdatedAt, curTime)
    
    	var newUser User
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config.go

    	// we start the timer before we make the network call because kmsv2PluginWriteDEKSourceMaxTTL is meant to be the upper bound
    	expirationTimestamp := envelopekmsv2.NowFunc().Add(kmsv2PluginWriteDEKSourceMaxTTL)
    
    	// dynamically check if we want to use KDF seed to derive DEKs or just a single DEK
    	// this gate can only change during tests, but the check is cheap enough to always make
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 41.2K bytes
    - Viewed (0)
Back to top