- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for newV2 (0.06 sec)
-
pkg/kubelet/cm/devicemanager/checkpoint/checkpoint.go
} // New returns an instance of Checkpoint - must be an alias for the most recent version func New(devEntries []PodDevicesEntry, devices map[string][]string) DeviceManagerCheckpoint { return newV2(devEntries, devices) } func newV2(devEntries []PodDevicesEntry, devices map[string][]string) DeviceManagerCheckpoint { return &Data{ Data: checkpointData{ PodDeviceEntries: devEntries, RegisteredDevices: devices, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 12:01:56 UTC 2024 - 3.2K bytes - Viewed (0) -
tests/named_argument_test.go
if err := DB.Exec("UPDATE named_users SET name1 = @name, name2 = @name2, name3 = @name", sql.Named("name", "jinzhu-new"), sql.Named("name2", "jinzhu-new2")).Error; err != nil { t.Errorf("failed to update with named arg") } namedUser.Name1 = "jinzhu-new" namedUser.Name2 = "jinzhu-new2" namedUser.Name3 = "jinzhu-new" var result5 NamedUser
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Dec 21 11:50:00 UTC 2021 - 2.7K bytes - Viewed (0) -
test/typeparam/issue50598.dir/a0.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 14 16:41:18 UTC 2022 - 398 bytes - Viewed (0) -
tests/update_belongs_to_test.go
t.Fatalf("errors happened when update: %v", err) } var user4 User DB.Preload("Company").Preload("Manager").Find(&user4, "id = ?", user.ID) CheckUser(t, user4, user) user.Company.Name += "new2" user.Manager.Name += "new2" if err := DB.Session(&gorm.Session{FullSaveAssociations: true}).Select("`Company`").Save(&user).Error; err != nil { t.Fatalf("errors happened when update: %v", err) } var user5 User
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Jul 14 06:55:54 UTC 2022 - 1.6K bytes - Viewed (0) -
test/typeparam/issue50552.dir/a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 11 21:51:51 UTC 2022 - 196 bytes - Viewed (0) -
src/go/doc/doc_test.go
type G1[T any] struct { *s3 } func NewG1[T any]() G1[T] { return G1[T]{} } func (G1[T]) MG1() {} func (*G1[U]) MG2() {} type G2[T, U any] struct {} func NewG2[T, U any]() G2[T, U] { return G2[T, U]{} } func (G2[T, U]) MG3() {} func (*G2[A, B]) MG4() {} ` var funcsPackage = &Package{ Funcs: []*Func{{Name: "F"}}, Types: []*Type{ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:52 UTC 2022 - 6.7K bytes - Viewed (0) -
src/internal/types/testdata/check/issues1.go
~uint } type T2[U Unsigned] struct { s U } func (u T2[U]) Add1() U { return u.s + 1 } func NewT2[U any]() T2[U /* ERROR "U does not satisfy Unsigned" */ ] { return T2[U /* ERROR "U does not satisfy Unsigned" */ ]{} } func _() { u := NewT2[string]() _ = u.Add1() } // When we encounter an instantiated type such as Elem[T] we must
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:56:37 UTC 2023 - 6K bytes - Viewed (0) -
src/hash/fnv/fnv.go
offset128Higher = 0x6c62272e07bb0142 prime32 = 16777619 prime64 = 1099511628211 prime128Lower = 0x13b prime128Shift = 24 ) // New32 returns a new 32-bit FNV-1 [hash.Hash]. // Its Sum method will lay the value out in big-endian byte order. func New32() hash.Hash32 { var s sum32 = offset32 return &s } // New32a returns a new 32-bit FNV-1a [hash.Hash].
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 22:36:41 UTC 2024 - 8.5K bytes - Viewed (0) -
src/runtime/gc_test.go
// further move the stack. new2 := uintptr(unsafe.Pointer(new)) t.Logf("old stack pointer %x, new stack pointer %x", old, new2) if new2 == old { // Check that we didn't screw up the test's escape analysis. if cls := runtime.GCTestPointerClass(unsafe.Pointer(new)); cls != "stack" { t.Fatalf("test bug: new (%#x) should be a stack pointer, not %s", new2, cls) } // This was a real failure.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 22:33:52 UTC 2024 - 17.6K bytes - Viewed (0) -
pkg/registry/rbac/validation/rule_test.go
"k8s.io/apiserver/pkg/authentication/user" ) // compute a hash of a policy rule so we can sort in a deterministic order func hashOf(p rbacv1.PolicyRule) string { hash := fnv.New32() writeStrings := func(slis ...[]string) { for _, sli := range slis { for _, s := range sli { io.WriteString(hash, s) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 7.9K bytes - Viewed (0)