Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetTracebackEnv (0.18 sec)

  1. src/runtime/runtime_test.go

    func init() {
    	// We're testing the runtime, so make tracebacks show things
    	// in the runtime. This only raises the level, so it won't
    	// override GOTRACEBACK=crash from the user.
    	SetTracebackEnv("system")
    }
    
    var errf error
    
    func errfn() error {
    	return errf
    }
    
    func errfn1() error {
    	return io.EOF
    }
    
    func BenchmarkIfaceCmp100(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    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. src/runtime/export_test.go

    func SetEnvs(e []string) { envs = e }
    
    const PtrSize = goarch.PtrSize
    
    var ForceGCPeriod = &forcegcperiod
    
    // SetTracebackEnv is like runtime/debug.SetTraceback, but it raises
    // the "environment" traceback level, so later calls to
    // debug.SetTraceback (e.g., from testing timeouts) can't lower it.
    func SetTracebackEnv(level string) {
    	setTraceback(level)
    	traceback_env = traceback_cache
    }
    
    var ReadUnaligned32 = readUnaligned32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top