Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 217 for newUser (0.28 sec)

  1. tests/create_test.go

    	user.UpdatedAt = curTime
    	DB.Save(&user)
    
    	AssertEqual(t, user.CreatedAt, curTime)
    	AssertEqual(t, user.UpdatedAt, curTime)
    
    	var newUser User
    	DB.First(&newUser, user.ID)
    
    	AssertEqual(t, newUser.CreatedAt, curTime)
    	AssertEqual(t, newUser.UpdatedAt, curTime)
    }
    
    func TestCreateWithNowFuncOverride(t *testing.T) {
    	user := User{Name: "CreateUserTimestampOverride"}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  2. tests/helper_test.go

    }
    
    func doCheckUser(t *testing.T, user User, expect User, unscoped bool) {
    	if user.ID != 0 {
    		var newUser User
    		if err := db(unscoped).Where("id = ?", user.ID).First(&newUser).Error; err != nil {
    			t.Fatalf("errors happened when query: %v", err)
    		} else {
    			AssertObjEqual(t, newUser, user, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "Name", "Age", "Birthday",
    				"CompanyID", "ManagerID", "Active")
    		}
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. src/time/time_test.go

    	for i := int64(0); i < 100; i++ {
    		sec := notMonoTime.Unix()
    		notMonoTime = notMonoTime.Add(Duration(i * 1e9))
    		if newSec := notMonoTime.Unix(); newSec != sec+i && newSec+UnixToInternal != maxInt64 {
    			t.Fatalf("time ext: %d overflows with positive delta, overflow threshold: %d", newSec, maxInt64)
    		}
    	}
    
    	// Test it with negative delta.
    	maxInt64 = -maxInt64
    	notMonoTime = NotMonoNegativeTime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  4. pkg/registry/autoscaling/horizontalpodautoscaler/strategy.go

    	fields := map[fieldpath.APIVersion]*fieldpath.Set{
    		"autoscaling/v1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    		"autoscaling/v2": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    		"autoscaling/v2beta1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    		"autoscaling/v2beta2": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    	}
    
    	return fields
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 04:51:00 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. pkg/registry/flowcontrol/prioritylevelconfiguration/strategy.go

    		"flowcontrol.apiserver.k8s.io/v1beta1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    		"flowcontrol.apiserver.k8s.io/v1beta2": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    		"flowcontrol.apiserver.k8s.io/v1beta3": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    		"flowcontrol.apiserver.k8s.io/v1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 20:55:50 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. pkg/registry/admissionregistration/validatingadmissionpolicy/strategy.go

    	fields := map[fieldpath.APIVersion]*fieldpath.Set{
    		"admissionregistration.k8s.io/v1alpha1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    		"admissionregistration.k8s.io/v1beta1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    		"admissionregistration.k8s.io/v1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    	}
    
    	return fields
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. cmd/object-api-options.go

    			if err != nil {
    				return
    			}
    			if sse, err = encrypt.NewSSEC(clientKey[:]); err != nil {
    				return
    			}
    			opts.ServerSideEncryption = encrypt.SSECopy(sse)
    			return
    		}
    		return
    	}
    
    	if crypto.SSEC.IsRequested(header) {
    		clientKey, err = crypto.SSEC.ParseHTTP(header)
    		if err != nil {
    			return
    		}
    		if sse, err = encrypt.NewSSEC(clientKey[:]); err != nil {
    			return
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/macho_combine_dwarf.go

    		if err != nil {
    			return nil, nil, err
    		}
    
    		newSec := *sect
    		newSec.Offset = uint32(dwarfseg.Offset) + uint32(buf.Len())
    		newSec.Addr = dwarfseg.Addr + uint64(buf.Len())
    		if compressed {
    			newSec.Name = "__z" + sect.Name[2:]
    			newSec.Size = uint64(len(contents))
    		}
    		sects = append(sects, &newSec)
    		buf.Write(contents)
    	}
    	return sects, buf.Bytes(), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. src/cmd/go/internal/toolchain/switch.go

    	for i := len(list) - 1; i >= 0; i-- {
    		v := list[i]
    		if gover.Compare(v, need) < 0 {
    			break
    		}
    		if gover.Lang(latest) == gover.Lang(v) {
    			continue
    		}
    		newer := latest
    		latest = v
    		if newer != "" && !gover.IsPrerelease(newer) {
    			// latest is the last patch release of Go 1.X, and we saw a non-prerelease of Go 1.(X+1),
    			// so latest is the one we want.
    			break
    		}
    	}
    	if latest == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/core/BuildScanAutoApplyIntegrationTest.groovy

                executer.expectDocumentedDeprecationWarning("Gradle Enterprise plugin $version has been deprecated. Starting with Gradle 9.0, only Gradle Enterprise plugin 3.13.1 or newer is supported. Consult the upgrading guide for further information: https://docs.gradle.org/current/userguide/upgrading_version_8.html#unsupported_ge_plugin_3.13")
            }
    
            and:
            runBuildWithScanRequest()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 08:50:27 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top