Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,102 for failf (0.06 sec)

  1. test/fixedbugs/bug459.go

    type FlagSet struct {
    }
    
    func (f *FlagSet) failf(format string, a ...interface{}) {
    	f.usage()
    }
    
    func (f *FlagSet) usage() {
    	if f == commandLine {
    		panic(3)
    	}
    }
    
    func NewFlagSet() *FlagSet {
    	f := &FlagSet{}
    	f.setErrorHandling(true)
    	return f
    }
    
    func (f *FlagSet) setErrorHandling(b bool) {
    	f.failf("DIE")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 20:27:09 UTC 2022
    - 681 bytes
    - Viewed (0)
  2. src/cmd/go/internal/cmdflag/flag.go

    	// fs.Visit will correctly visit the flags that have been set.
    
    	failf := func(format string, a ...any) (*flag.Flag, []string, error) {
    		return f, args, fmt.Errorf(format, a...)
    	}
    
    	if fv, ok := f.Value.(boolFlag); ok && fv.IsBoolFlag() { // special case: doesn't need an arg
    		if hasValue {
    			if err := fs.Set(name, value); err != nil {
    				return failf("invalid boolean value %q for -%s: %v", value, name, err)
    			}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 06 02:38:04 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. releasenotes/notes/wasm-fail-open.yaml

    apiVersion: release-notes/v2
    kind: feature
    area: extensibility
    issue: []
    releaseNotes:
      - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 02 21:32:02 UTC 2023
    - 169 bytes
    - Viewed (0)
  8. 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)
  9. hack/boilerplate/test/fail.py

    kidddddddddddddddddddddd <******@****.***> 1673408742 +0800
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 12 03:20:41 UTC 2023
    - 622 bytes
    - Viewed (0)
  10. 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)
Back to top