Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for runtime_test (0.21 sec)

  1. src/runtime/runtime_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 (
    	"flag"
    	"fmt"
    	"io"
    	. "runtime"
    	"runtime/debug"
    	"slices"
    	"strings"
    	"sync"
    	"testing"
    	"time"
    	"unsafe"
    )
    
    // flagQuick is set by the -quick option to skip some relatively slow tests.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/runtime/runtime_test.go

    Sascha Grunert <******@****.***> 1717050802 +0200
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. src/runtime/callers_test.go

    	// Make sure we don't have any extra frames on the stack (due to
    	// open-coded defer processing)
    	want := []string{"runtime.Callers", "runtime_test.TestCallersPanic.func1",
    		"runtime.gopanic", "runtime_test.f3", "runtime_test.f2", "runtime_test.f1",
    		"runtime_test.TestCallersPanic"}
    
    	defer func() {
    		if r := recover(); r == nil {
    			t.Fatal("did not panic")
    		}
    		pcs := make([]uintptr, 20)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 21:36:31 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  4. src/runtime/traceback_test.go

    		r := ttiSimple1()
    		check(t, r, "runtime_test.ttiSimple3(...)", "runtime_test.ttiSimple2(...)", "runtime_test.ttiSimple1()")
    	})
    
    	t.Run("sigpanic", func(t *testing.T) {
    		// Check that sigpanic from an inlined function prints correctly
    		r := ttiSigpanic1()
    		check(t, r, "runtime_test.ttiSigpanic1.func1()", "panic", "runtime_test.ttiSigpanic3(...)", "runtime_test.ttiSigpanic2(...)", "runtime_test.ttiSigpanic1()")
    	})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  5. 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)
  6. src/runtime/metrics_test.go

    			{
    				"runtime.unlock",
    				"runtime.semrelease1",
    				"runtime_test.TestRuntimeLockMetricsAndProfile.func6.1",
    				"runtime_test.(*contentionWorker).run",
    			},
    			{
    				"runtime.unlock",
    				"runtime.semacquire1",
    				"runtime.semacquire",
    				"runtime_test.TestRuntimeLockMetricsAndProfile.func6.1",
    				"runtime_test.(*contentionWorker).run",
    			},
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  7. src/runtime/mpagecache_test.go

    // Copyright 2019 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 (
    	"internal/goos"
    	"math/rand"
    	. "runtime"
    	"testing"
    )
    
    func checkPageCache(t *testing.T, got, want PageCache) {
    	if got.Base() != want.Base() {
    		t.Errorf("bad pageCache base: got 0x%x, want 0x%x", got.Base(), want.Base())
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 06 19:16:48 UTC 2021
    - 10.8K bytes
    - Viewed (0)
  8. src/runtime/pinner_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 (
    	"runtime"
    	"testing"
    	"time"
    	"unsafe"
    )
    
    type obj struct {
    	x int64
    	y int64
    	z int64
    }
    
    type objWith[T any] struct {
    	x int64
    	y int64
    	z int64
    	o T
    }
    
    var (
    	globalUintptr                uintptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:36:12 UTC 2023
    - 11K bytes
    - Viewed (0)
  9. src/runtime/malloc_test.go

    // Copyright 2013 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 (
    	"flag"
    	"fmt"
    	"internal/race"
    	"internal/testenv"
    	"os"
    	"os/exec"
    	"reflect"
    	"runtime"
    	. "runtime"
    	"strings"
    	"sync/atomic"
    	"testing"
    	"time"
    	"unsafe"
    )
    
    var testMemStatsCount int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  10. src/runtime/slice_test.go

    // Copyright 2011 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 (
    	"fmt"
    	"testing"
    )
    
    const N = 20
    
    func BenchmarkMakeSliceCopy(b *testing.B) {
    	const length = 32
    	var bytes = make([]byte, 8*length)
    	var ints = make([]int, length)
    	var ptrs = make([]*byte, length)
    	b.Run("mallocmove", func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 17 09:45:44 UTC 2020
    - 10.3K bytes
    - Viewed (0)
Back to top