Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,880 for fail2 (0.05 sec)

  1. platforms/core-runtime/base-services/src/integTest/groovy/org/gradle/internal/exceptions/DefaultMultiCauseExceptionIntegrationTest.groovy

                    doLast {
                        def fail1 = new TestResolutionProviderException('resolution1')
                        def fail2 = new TestResolutionProviderException('resolution2')
                        throw new org.gradle.internal.exceptions.DefaultMultiCauseException('failure', fail1, fail2)
                    }
                }
            """
    
            when:
            fails 'myTask'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r27/TestLauncherCrossVersionSpec.groovy

        Failed tests:
            Test example.MyFailingTest#fail (Task: :secondTest)
            Test example.MyFailingTest#fail2 (Task: :secondTest)
            Test example.MyFailingTest#fail (Task: :test)
            Test example.MyFailingTest#fail2 (Task: :test)"""
    
            when:
            launchTests { TestLauncher testLauncher ->
                testLauncher.withJvmTestMethods("example.MyFailingTest", "fail")
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGXmlResultAndHtmlReportIntegrationTest.groovy

            System.out.println("out.fail");
            System.err.println("err.fail");
            fail("failing!");
        }
        @Test public void passing2() {
            System.out.println("out.pass2");
            System.err.println("err.pass2");
        }
        @Test public void failing2() {
            System.out.println("out.fail2");
            System.err.println("err.fail2");
            fail("failing2!");
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 25 21:27:42 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  4. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/result/TestClassResultSpec.groovy

            result.add(new TestMethodResult(2, "fail").completed(new DefaultTestResult(TestResult.ResultType.FAILURE, 250, 300, 1, 0, 1, [new RuntimeException("bar")])))
            result.add(new TestMethodResult(3, "fail2").completed(new DefaultTestResult(TestResult.ResultType.FAILURE, 300, 450, 1, 0, 1, [new RuntimeException("foo")])))
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                    Integer fail1 = SmbTransportPoolImpl.this.failCounts.get(o1.getHostAddress());
                    Integer fail2 = SmbTransportPoolImpl.this.failCounts.get(o2.getHostAddress());
                    if ( fail1 == null ) {
                        fail1 = 0;
                    }
                    if ( fail2 == null ) {
                        fail2 = 0;
                    }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 12.5K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/exceptions/DefaultMultiCauseExceptionTest.groovy

        }
    
        def "when causes include ResolutionProviders, their resolutions are included"() {
            given:
            def fail1 = new TestResolutionProviderException('resolution1')
            def fail2 = new TestResolutionProviderException('resolution2')
            def multiFail = new DefaultMultiCauseException('failure', fail1, fail2)
    
            expect:multiFail.getResolutions() == ['resolution1', 'resolution2']
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. test/bigalg.go

    	c string
    	d byte
    }
    
    var a = []int{1, 2, 3}
    var NIL []int
    
    func arraycmptest() {
    	if NIL != nil {
    		println("fail1:", NIL, "!= nil")
    		panic("bigalg")
    	}
    	if nil != NIL {
    		println("fail2: nil !=", NIL)
    		panic("bigalg")
    	}
    	if a == nil || nil == a {
    		println("fail3:", a, "== nil")
    		panic("bigalg")
    	}
    }
    
    func SameArray(a, b []int) bool {
    	if len(a) != len(b) || cap(a) != cap(b) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 12 18:17:49 UTC 2013
    - 2.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/op.go

    // boundsABI determines which register arguments a bounds check call should use. For an [a:b:c] slice, we do:
    //
    //	CMPQ c, cap
    //	JA   fail1
    //	CMPQ b, c
    //	JA   fail2
    //	CMPQ a, b
    //	JA   fail3
    //
    // fail1: CALL panicSlice3Acap (c, cap)
    // fail2: CALL panicSlice3B (b, c)
    // fail3: CALL panicSlice3C (a, b)
    //
    // When we register allocate that code, we want the same register to be used for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 15:29:10 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/TestLauncherSpec.groovy

                package example;
                public class MyFailingTest {
                    @org.junit.Test public void fail() throws Exception {
                         org.junit.Assert.assertEquals(1, 2);
                    }
    
                    @org.junit.Test public void fail2() throws Exception {
                         org.junit.Assert.assertEquals(1, 2);
                    }
                }"""
    
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 08:42:44 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  10. test/interface/fail.go

    // run
    
    // Copyright 2009 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.
    
    // Test that interface conversion fails when method is missing.
    
    package main
    
    type I interface {
    	Foo()
    }
    
    func main() {
    	shouldPanic(p1)
    }
    
    func p1() {
    	var s *S
    	var i I
    	var e interface{}
    	e = s
    	i = e.(I)
    	_ = i
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 15 16:55:13 UTC 2014
    - 544 bytes
    - Viewed (0)
Back to top