- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 108 for runtime_test (0.33 sec)
-
src/runtime/panicnil_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime_test import ( "reflect" "runtime" "runtime/metrics" "testing" ) func TestPanicNil(t *testing.T) { t.Run("default", func(t *testing.T) { checkPanicNil(t, new(runtime.PanicNilError)) }) t.Run("GODEBUG=panicnil=0", func(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 19 22:26:43 UTC 2023 - 1.3K bytes - Viewed (0) -
src/runtime/trace2map_test.go
// Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime_test import ( . "runtime" "strconv" "sync" "testing" ) func TestTraceMap(t *testing.T) { var m TraceMap // Try all these operations multiple times between resets, to make sure // we're resetting properly. for range 3 { var d = [...]string{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 10 18:52:49 UTC 2024 - 1.8K bytes - Viewed (0) -
src/runtime/runtime_mmap_test.go
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build unix package runtime_test import ( "runtime" "testing" "unsafe" ) // Test that the error value returned by mmap is positive, as that is // what the code in mem_bsd.go, mem_darwin.go, and mem_linux.go expects. // See the uses of ENOMEM in sysMap in those files.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 29 16:24:51 UTC 2022 - 1.8K bytes - Viewed (0) -
src/runtime/fds_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build unix package runtime_test import ( "internal/testenv" "os" "strings" "testing" ) func TestCheckFDs(t *testing.T) { if *flagQuick { t.Skip("-quick") } testenv.MustHaveGoBuild(t) fdsBin, err := buildTestProg(t, "testfds")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 25 16:33:33 UTC 2023 - 1.4K bytes - Viewed (0) -
src/runtime/runtime_linux_test.go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime_test import ( . "runtime" "syscall" "testing" "time" "unsafe" ) var pid, tid int func init() { // Record pid and tid of init thread for use during test. // The call to LockOSThread is just to exercise it;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 21 20:20:01 UTC 2023 - 1.8K bytes - Viewed (0) -
src/runtime/rand_test.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime_test import ( . "runtime" "strconv" "testing" _ "unsafe" // for go:linkname ) func TestReadRandom(t *testing.T) { if *ReadRandomFailed { switch GOOS { default: t.Fatalf("readRandom failed at startup") case "plan9": // ok }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 07 23:44:31 UTC 2023 - 2K bytes - Viewed (0) -
src/runtime/align_test.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime_test import ( "go/ast" "go/build" "go/importer" "go/parser" "go/printer" "go/token" "go/types" "internal/testenv" "os" "regexp" "runtime" "strings" "testing" ) // Check that 64-bit fields on which we apply atomic operations
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 08 14:52:12 UTC 2023 - 5.4K bytes - Viewed (0) -
src/runtime/stack_test.go
// nil calls to interface methods cause a sigpanic. testStackWrapperPanic(t, func() { I.M(nil) }, "runtime_test.I.M") }) t.Run("panicwrap", func(t *testing.T) { // Nil calls to value method wrappers call panicwrap. wrapper := (*structWithMethod).nop testStackWrapperPanic(t, func() { wrapper(nil) }, "runtime_test.(*structWithMethod).nop") }) } func testStackWrapperPanic(t *testing.T, cb func(), expect string) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 23.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/splice_test.go
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package runtime_test import ( "bytes" "testing" "k8s.io/apimachinery/pkg/runtime" ) func TestSpliceBuffer(t *testing.T) { testBytes0 := []byte{0x01, 0x02, 0x03, 0x04} testBytes1 := []byte{0x04, 0x03, 0x02, 0x02}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 05 18:03:48 UTC 2023 - 2.5K bytes - Viewed (0) -
src/runtime/trace_cgo_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build cgo package runtime_test import ( "bytes" "fmt" "internal/testenv" "internal/trace" "io" "os" "runtime" "strings" "testing" ) // TestTraceUnwindCGO verifies that trace events emitted in cgo callbacks
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.6K bytes - Viewed (0)