Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 108 for runtime_test (0.17 sec)

  1. src/runtime/debuglog_test.go

    // principle, but currently our linker reads in all symbols
    // regardless, so this would slow down and bloat all links. If the
    // linker gets more efficient about this, we should revisit this
    // approach.
    
    package runtime_test
    
    import (
    	"fmt"
    	"internal/testenv"
    	"regexp"
    	"runtime"
    	"strings"
    	"sync"
    	"sync/atomic"
    	"testing"
    )
    
    func skipDebugLog(t *testing.T) {
    	if !runtime.DlogEnabled {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 16:59:26 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  2. src/runtime/coro_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 (
    	"internal/testenv"
    	"runtime"
    	"strings"
    	"testing"
    )
    
    func TestCoroLockOSThread(t *testing.T) {
    	for _, test := range []string{
    		"CoroLockOSThreadIterLock",
    		"CoroLockOSThreadIterLockYield",
    		"CoroLockOSThreadLock",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 21:36:37 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. src/runtime/lockrank_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 (
    	"bytes"
    	"internal/testenv"
    	"os"
    	"os/exec"
    	"testing"
    )
    
    // Test that the generated code for the lock rank graph is up-to-date.
    func TestLockRankGenerated(t *testing.T) {
    	testenv.MustHaveGoRun(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 20:57:33 UTC 2023
    - 856 bytes
    - Viewed (0)
  4. src/runtime/memmove_linux_amd64_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 (
    	"os"
    	"syscall"
    	"testing"
    	"unsafe"
    )
    
    // TestMemmoveOverflow maps 3GB of memory and calls memmove on
    // the corresponding slice.
    func TestMemmoveOverflow(t *testing.T) {
    	t.Parallel()
    	// Create a temporary file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:48:30 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  5. src/runtime/panic_test.go

    // Copyright 2020 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 (
    	"strings"
    	"testing"
    )
    
    // Test that panics print out the underlying value
    // when the underlying kind is directly printable.
    // Issue: https://golang.org/issues/37531
    func TestPanicWithDirectlyPrintableCustomTypes(t *testing.T) {
    	tests := []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. src/runtime/chanbarrier_test.go

    // Copyright 2015 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"
    	"sync"
    	"testing"
    )
    
    type response struct {
    }
    
    type myError struct {
    }
    
    func (myError) Error() string { return "" }
    
    func doRequest(useSelect bool) (*response, error) {
    	type async struct {
    		resp *response
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. src/runtime/closure_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 "testing"
    
    var s int
    
    func BenchmarkCallClosure(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		s += func(ii int) int { return 2 * ii }(i)
    	}
    }
    
    func BenchmarkCallClosure1(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		j := i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 17 09:45:44 UTC 2020
    - 937 bytes
    - Viewed (0)
  8. src/runtime/conv_wasm_test.go

    // Copyright 2020 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 (
    	"testing"
    )
    
    var res int64
    var ures uint64
    
    func TestFloatTruncation(t *testing.T) {
    	testdata := []struct {
    		input      float64
    		convInt64  int64
    		convUInt64 uint64
    		overflow   bool
    	}{
    		// max +- 1
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 06 13:55:00 UTC 2020
    - 3K bytes
    - Viewed (0)
  9. src/runtime/complex_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 (
    	"math/cmplx"
    	"testing"
    )
    
    var result complex128
    
    func BenchmarkComplex128DivNormal(b *testing.B) {
    	d := 15 + 2i
    	n := 32 + 3i
    	res := 0i
    	for i := 0; i < b.N; i++ {
    		n += 0.1i
    		res += n / d
    	}
    	result = res
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 1.1K bytes
    - Viewed (0)
  10. src/runtime/ehooks_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 (
    	"internal/platform"
    	"internal/testenv"
    	"os/exec"
    	"runtime"
    	"strings"
    	"testing"
    )
    
    func TestExitHooks(t *testing.T) {
    	bmodes := []string{""}
    	if testing.Short() {
    		t.Skip("skipping due to -short")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top