Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for childCause (0.1 sec)

  1. subprojects/core/src/test/groovy/org/gradle/internal/exceptions/ContextAwareExceptionTest.groovy

            def ignored = new RuntimeException()
            def childCause1 = new RuntimeException(ignored)
            def childCause2 = new RuntimeException()
            def childCause3 = new TestContextualException(childCause2)
            def childCause4 = new TestContextualException(childCause3)
            def cause = new DefaultMultiCauseException("broken", childCause1, childCause4)
            def e = new ContextAwareException(cause)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 13:32:53 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. src/context/x_test.go

    	}
    	if !i.Timeout() {
    		t.Fatal("wrong value for timeout")
    	}
    }
    func TestCause(t *testing.T) {
    	var (
    		forever       = 1e6 * time.Second
    		parentCause   = fmt.Errorf("parentCause")
    		childCause    = fmt.Errorf("childCause")
    		tooSlow       = fmt.Errorf("tooSlow")
    		finishedEarly = fmt.Errorf("finishedEarly")
    	)
    	for _, test := range []struct {
    		name  string
    		ctx   func() Context
    		err   error
    		cause error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 26.3K bytes
    - Viewed (0)
Back to top