- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for pkt2 (0.3 sec)
-
src/net/interface_plan9.go
mtu, _, ok := dtoi(mtustr) if !ok { return nil, errors.New("invalid status file of interface: " + ifcstat) } ifc.MTU = mtu // Not a loopback device ("/dev/null") or packet interface (e.g. "pkt2") if stringslite.HasPrefix(device, netdir+"/") { deviceaddrf, err := open(device + "/addr") if err != nil { return nil, err } defer deviceaddrf.close() line, ok = deviceaddrf.readLine()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 4.7K bytes - Viewed (0) -
src/net/http/pattern_test.go
} { pat1 := mustParsePattern(t, test.p1) pat2 := mustParsePattern(t, test.p2) if g := pat1.comparePaths(pat1); g != equivalent { t.Errorf("%s does not match itself; got %s", pat1, g) } if g := pat2.comparePaths(pat2); g != equivalent { t.Errorf("%s does not match itself; got %s", pat2, g) } got := pat1.comparePaths(pat2) if got != test.want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 16:36:30 UTC 2024 - 15K bytes - Viewed (0) -
tests/associations_has_one_test.go
} CheckPet(t, pet, pet) // Find var pet2 Pet DB.Find(&pet2, "id = ?", pet.ID) DB.Model(&pet2).Association("Toy").Find(&pet2.Toy) CheckPet(t, pet2, pet) // Count AssertAssociationCount(t, pet, "Toy", 1, "") // Append toy := Toy{Name: "toy-has-one-append"} if err := DB.Model(&pet2).Association("Toy").Append(&toy); err != nil {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 7.1K bytes - Viewed (0) -
src/net/http/routing_tree_test.go
{"GET", "", "/a/b/c/d", "", nil}, }) // A pattern ending in a single wildcard should not match a trailing slash URL. pat2 := "/a/b/{w}" test(buildTree(pat2), []testCase{ {"GET", "", "/a/b", "", nil}, {"GET", "", "/a/b/", "", nil}, {"GET", "", "/a/b/c", pat2, []string{"c"}}, {"GET", "", "/a/b/c/d", "", nil}, }) // A pattern ending in a multi wildcard should match both URLs.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 15:43:24 UTC 2024 - 7K bytes - Viewed (0) -
src/go/types/instantiate_test.go
const src = "package p; type T[P any] int" pkg1 := mustTypecheck(src, nil, nil) pkg2 := mustTypecheck(src, nil, nil) // We consider T1 and T2 to be distinct types, so their instances should not // be deduplicated by the context. T1 := pkg1.Scope().Lookup("T").Type().(*Named) T2 := pkg2.Scope().Lookup("T").Type().(*Named) ctxt := NewContext() res1, err := Instantiate(ctxt, T1, []Type{Typ[Int]}, false)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 5.9K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/reset_test.go
var testResetConfig = fmt.Sprintf(`apiVersion: %s kind: ResetConfiguration force: true dryRun: true cleanupTmpDir: true criSocket: %s:///var/run/fake.sock certificatesDir: /etc/kubernetes/pki2 ignorePreflightErrors: - a - b `, kubeadmapiv1.SchemeGroupVersion.String(), defaultURLScheme) func TestNewResetData(t *testing.T) { // create temp directory tmpDir, err := os.MkdirTemp("", "kubeadm-reset-test")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 13:42:50 UTC 2024 - 8.5K bytes - Viewed (0) -
tests/associations_has_many_test.go
AssertAssociationCount(t, user, "Pets", 5, "AfterAppendSlice") // Replace pet2 := Pet{Name: "pet-has-many-replace"} if err := DB.Model(&user2).Association("Pets").Replace(&pet2); err != nil { t.Fatalf("Error happened when append pet, got %v", err) } if pet2.ID == 0 { t.Fatalf("pet2's ID should be created") } user.Pets = []*Pet{&pet2} CheckUser(t, user2, user)
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 16K bytes - Viewed (0) -
src/cmd/internal/obj/x86/asm6.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:44:14 UTC 2024 - 146.9K bytes - Viewed (0) -
tests/create_test.go
} if err := DB.Create(&pet).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } CheckPet(t, pet, pet) var pet2 Pet DB.Preload("Toy").Find(&pet2, "id = ?", pet.ID) CheckPet(t, pet2, pet) }) t.Run("Slice", func(t *testing.T) { pets := []Pet{{ Name: "PolymorphicHasOne-Slice-1", Toy: Toy{Name: "Toy-PolymorphicHasOne-Slice-1"}, }, {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 26.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/object.go
// sameId reports whether obj.Id() and Id(pkg, name) are the same. // If foldCase is true, names are considered equal if they are equal with case folding // and their packages are ignored (e.g., pkg1.m, pkg1.M, pkg2.m, and pkg2.M are all equal). sameId(pkg *Package, name string, foldCase bool) bool // scopePos returns the start position of the scope of this Object scopePos() syntax.Pos
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 20.1K bytes - Viewed (0)