- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for newV2 (0.08 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) -
test/fixedbugs/issue9006.go
type T1 struct { X int } func NewT1(x int) T1 { return T1{x} } type T2 int func NewT2(x int) T2 { return T2(x) } func main() { switch (T1{}) { case NewT1(1): panic("bad1") case NewT1(0): // ok default: panic("bad2") } switch T2(0) { case NewT2(2): panic("bad3") case NewT2(0): // ok default: panic("bad4") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 520 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/extension_test.go
} if err = json.Unmarshal(newData, &new2); err != nil { t.Errorf("2nd unmarshal error: %v", err) } if !bytes.Equal(data, newData) { t.Errorf("%s: re-marshaled data differs from original: %v %v", k, data, newData) } if !reflect.DeepEqual(tc.orig, new1) { t.Errorf("%s: unmarshaled struct differs from original: %v %v", k, tc.orig, new1) } if !reflect.DeepEqual(new1, new2) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 08 22:36:37 UTC 2017 - 2.8K 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) -
src/hash/fnv/fnv_test.go
{[]byte{0xa6, 0x8d, 0x62, 0x2c, 0xec, 0x8b, 0x58, 0x22, 0x83, 0x6d, 0xbc, 0x79, 0x77, 0xaf, 0x7f, 0x3b}, "abc", "fnv\x06\xd2(\xcbio\x1a\x8c\xafx\x91+pNJ\x89d"}, } func TestGolden32(t *testing.T) { testGolden(t, New32(), golden32) } func TestGolden32a(t *testing.T) { testGolden(t, New32a(), golden32a) } func TestGolden64(t *testing.T) { testGolden(t, New64(), golden64) } func TestGolden64a(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 21:04:12 UTC 2017 - 7.3K 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) -
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_striped.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 22 17:16:59 UTC 2018 - 1.6K 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)