Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for badMethod (0.41 sec)

  1. platforms/jvm/language-groovy/src/integTest/groovy/org/gradle/groovy/compile/GroovyCompileProblemsIntegrationTest.groovy

            given:
            file("src/main/groovy/JavaThing.java") << """\
                public class JavaThing {
                    public void badMethod() {
                        // The following line will cause a compilation error
                        return "Hello, World!"
                    }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 16:25:50 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. src/syscall/js/js_test.go

    		t.Errorf("got %#v, want %#v", got, 42)
    	}
    
    	expectPanic(t, func() {
    		dummys.Call("zero")
    	})
    	expectValueError(t, func() {
    		dummys.Get("zero").Call("badMethod")
    	})
    }
    
    func TestInvoke(t *testing.T) {
    	var i int64 = 40
    	if got := dummys.Get("add").Invoke(i, 2).Int(); got != 42 {
    		t.Errorf("got %#v, want %#v", got, 42)
    	}
    
    	expectValueError(t, func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  3. src/reflect/all_test.go

    	badCall(func() { call(v.Field(0).Method(1)) })          // .t0.w
    	badMethod(func() { call(v.Field(0).Elem().Method(2)) }) // .t0.w
    	ok(func() { call(v.Field(1).Method(0)) })               // .T1.Y
    	ok(func() { call(v.Field(1).Elem().Method(0)) })        // .T1.Y
    	badCall(func() { call(v.Field(1).Method(1)) })          // .T1.y
    	badMethod(func() { call(v.Field(1).Elem().Method(2)) }) // .T1.y
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/TestExecutionResultEvaluatorTest.groovy

            def testMethodRequest2 = Mock(InternalJvmTestRequest)
            1 * testMethodRequest2.getClassName() >> "org.acme.SomeBazTest"
            1 * testMethodRequest2.getMethodName() >> "bazMethod"
    
    
            def details = Mock(ExecuteTestBuildOperationType.Details) {
                getTestDescriptor() >> testDescriptorInternal
            }
    
            def result = Mock(ExecuteTestBuildOperationType.Result) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top