- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 5,197 for makeID (0.48 sec)
-
src/go/types/termlist_test.go
// license that can be found in the LICENSE file. package types import ( "strings" "testing" ) // maketl makes a term list from a string of the term list. func maketl(s string) termlist { s = strings.ReplaceAll(s, " ", "") names := strings.Split(s, "|") r := make(termlist, len(names)) for i, n := range names { r[i] = testTerm(n) } return r } func TestTermlistAll(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 7.3K bytes - Viewed (0) -
test/fixedbugs/issue13799.go
} } func test2(iter int) { const maxI = 500 m := make(map[int][]int) // ERROR "make\(map\[int\]\[\]int\) does not escape$" // var fn func() for i := 0; i < maxI; i++ { var fn func() // this makes it work, because fn stays off heap j := 0 fn = func() { // ERROR "func literal does not escape$" m[i] = append(m[i], 0) if j < 25 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 4.9K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_chatty_parallel_success_run.txt
package chatty_parallel_test import ( "testing" ) var ( afterFirstLog = make(chan struct{}) afterSubTest = make(chan struct{}) afterSecondLog = make(chan struct{}) ) func TestInterruptor(t *testing.T) { t.Parallel() <-afterFirstLog t.Run("interruption", func (t *testing.T) {}) close(afterSubTest) <-afterSecondLog // Delay the "PASS: TestInterruptor" line until after "CONT TestLog". }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 19:50:36 UTC 2022 - 1K bytes - Viewed (0) -
pkg/apis/flowcontrol/internalbootstrap/defaults_test.go
scheme.Default(defaulted) if apiequality.Semantic.DeepEqual(original, defaulted) { t.Logf("Defaulting makes no change to FlowSchema: %q", original.Name) return } t.Errorf("Expected defaulting to not change FlowSchema: %q, diff: %s", original.Name, cmp.Diff(original, defaulted)) }) } bootstrapPriorityLevels := make([]*flowcontrol.PriorityLevelConfiguration, 0)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 2.4K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/futile-wakeup.go
// license that can be found in the LICENSE file. // Tests to make sure the runtime doesn't generate futile wakeups. For example, // it makes sure that a block on a channel send that unblocks briefly only to // immediately go back to sleep (in such a way that doesn't reveal any useful // information, and is purely an artifact of the runtime implementation) doesn't // make it into the trace. //go:build ignore package main import (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.8K bytes - Viewed (0) -
src/strings/clone.go
import ( "internal/stringslite" ) // Clone returns a fresh copy of s. // It guarantees to make a copy of s into a new allocation, // which can be important when retaining only a small substring // of a much larger string. Using Clone can help such programs // use less memory. Of course, since using Clone makes a copy, // overuse of Clone can make programs use more memory. // Clone should typically be used only rarely, and only when
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 04 01:23:42 UTC 2024 - 809 bytes - Viewed (0) -
pilot/pkg/serviceregistry/aggregate/controller_test.go
t.Fatal("Returned Instance is incorrect") } } // Get Instances from mockAdapter2 instances = aggregateCtl.GetProxyServiceTargets(&model.Proxy{IPAddresses: []string{mock.MakeIP(mock.WorldService, 1)}}) if len(instances) != 6 { t.Fatalf("Returned GetProxyServiceTargets' amount %d is not correct", len(instances)) } for _, inst := range instances {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 06:28:11 UTC 2024 - 14.5K bytes - Viewed (0) -
pilot/pkg/serviceregistry/mock/discovery.go
MeshExternal: isMeshExternal, Ports: []*model.Port{{ Name: "https", Port: 443, Protocol: protocol.HTTPS, }}, } } // MakeIP creates a fake IP address for a service and instance version func MakeIP(service *model.Service, version int) string { // external services have no instances if service.External() { return "" } ipa, ise := netip.ParseAddr(service.DefaultAddress)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 07 18:40:05 UTC 2023 - 3.7K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan10.go
// Since the Go runtime makes direct futex syscalls, Go runtime threads could // run for an arbitrarily long time without triggering the libc interceptors. // See https://golang.org/issue/18717. import ( "os" "os/signal" "syscall" ) /* #cgo CFLAGS: -g -fsanitize=thread #cgo LDFLAGS: -g -fsanitize=thread */ import "C" func main() { c := make(chan os.Signal, 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 798 bytes - Viewed (0) -
src/archive/tar/writer_test.go
var fw fileWriter switch maker := v.maker.(type) { case makeReg: fw = ®FileWriter{w, maker.size} wantStr = maker.wantStr case makeSparse: if !validateSparseEntries(maker.sph, maker.size) { t.Fatalf("invalid sparse map: %v", maker.sph) } spd := invertSparseEntries(maker.sph, maker.size) fw = ®FileWriter{w, maker.makeReg.size} fw = &sparseFileWriter{fw, spd, 0}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 38.7K bytes - Viewed (0)