Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SetPanicOnExit0 (0.16 sec)

  1. src/internal/testlog/exit.go

    	mu  sync.Mutex
    	val bool
    }
    
    // SetPanicOnExit0 sets panicOnExit0 to v.
    //
    // SetPanicOnExit0 should be an internal detail,
    // but alternate implementations of go test in other
    // build systems may need to access it using linkname.
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname SetPanicOnExit0
    func SetPanicOnExit0(v bool) {
    	panicOnExit0.mu.Lock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. src/testing/internal/testdeps/deps.go

    func (TestDeps) StopTestLog() error {
    	log.mu.Lock()
    	defer log.mu.Unlock()
    	err := log.w.Flush()
    	log.w = nil
    	return err
    }
    
    // SetPanicOnExit0 tells the os package whether to panic on os.Exit(0).
    func (TestDeps) SetPanicOnExit0(v bool) {
    	testlog.SetPanicOnExit0(v)
    }
    
    func (TestDeps) CoordinateFuzzing(
    	timeout time.Duration,
    	limit int64,
    	minimizeTimeout time.Duration,
    	minimizeLimit int64,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. pkg/util/coverage/fake_test_deps.go

    func (fakeTestDeps) MatchString(pat, str string) (bool, error) {
    	return false, nil
    }
    
    //nolint:unused // U1000 see comment above, we know it's unused normally.
    func (fakeTestDeps) SetPanicOnExit0(bool) {}
    
    //nolint:unused // U1000 see comment above, we know it's unused normally.
    func (fakeTestDeps) StartCPUProfile(io.Writer) error {
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 15:31:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. src/testing/testing.go

    func (f matchStringOnly) StartTestLog(io.Writer)                      {}
    func (f matchStringOnly) StopTestLog() error                          { return errMain }
    func (f matchStringOnly) SetPanicOnExit0(bool)                        {}
    func (f matchStringOnly) CoordinateFuzzing(time.Duration, int64, time.Duration, int64, int, []corpusEntry, []reflect.Type, string, string) error {
    	return errMain
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
Back to top