Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,515 for failf (0.18 sec)

  1. src/internal/trace/traceviewer/pprof.go

    			w.Header().Set("Content-Type", "application/octet-stream")
    
    			failf := func(s string, args ...any) {
    				w.Header().Set("Content-Type", "text/plain; charset=utf-8")
    				w.Header().Set("X-Go-Pprof", "1")
    				http.Error(w, fmt.Sprintf(s, args...), http.StatusInternalServerError)
    			}
    			records, err := f(r)
    			if err != nil {
    				failf("failed to get records: %v", err)
    				return
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:28:02 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/flag/flag.go

    // errParse is returned by Set if a flag's value fails to parse, such as with an invalid integer for Int.
    // It then gets wrapped through failf to provide more information.
    var errParse = errors.New("parse error")
    
    // errRange is returned by Set if a flag's value is out of range.
    // It then gets wrapped through failf to provide more information.
    var errRange = errors.New("value out of range")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 39.7K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/configurationCache/problemsKotlin/tests/fail.out

    Laura Kassovic <******@****.***> 1701107622 -0800
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 845 bytes
    - Viewed (0)
  4. 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)
  5. platforms/documentation/docs/src/snippets/configurationCache/problemsGroovy/tests/fail.out

    Laura Kassovic <******@****.***> 1701107622 -0800
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 825 bytes
    - Viewed (0)
  6. 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)
  7. src/internal/trace/testdata/generators/go122-fail-first-gen-first.go

    	// Write an invalid batch event for the next generation.
    	t.RawEvent(go122.EvEventBatch, nil, 2 /*gen*/, 0 /*thread ID*/, 0 /*timestamp*/, 50 /*batch length (invalid)*/)
    
    	// We should fail at the first issue, not the second one.
    	t.ExpectFailure("expected a proc but didn't have one")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryIntegrationTest.groovy

            }
    """
    
            when:
            fails "fail"
    
            then:
            failure.assertHasCause('Could not create an instance of type Thing.')
            failure.assertHasCause('Too many parameters provided for constructor for type Thing. Expected 0, received 1.')
        }
    
        def "object creation fails with ObjectInstantiationException when construction parameters provided for interface"() {
            given:
            buildFile """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 07 02:25:12 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/InvalidConfigurationResolutionIntegrationTest.groovy

                    }
                }
            """
        }
    
        def "fail if a dependency is declared on a configuration which can not be declared against"() {
            given:
            buildFile << """
                dependencies {
                    compile 'module:foo:1.0'
                }
            """
    
            when:
            fails 'help'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/ExternalScriptErrorIntegrationTest.groovy

        def "produces reasonable error message when task execution fails"() {
            externalScript << '''
    task doStuff {
        doLast {
            throw new RuntimeException('fail')
        }
    }
    '''
            when:
            fails 'doStuff'
    
            then:
            failure.assertHasDescription('Execution failed for task \':doStuff\'.')
                    .assertHasCause('fail')
                    .assertHasFileName("Script '${externalScript}'")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top