- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 4,880 for failf (0.07 sec)
-
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) -
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) -
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) -
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) -
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) -
hack/boilerplate/test/fail.go
/* Copyright 2014 The Kubernetes Authors. fail Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 03 01:32:50 UTC 2017 - 590 bytes - Viewed (0) -
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) -
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) -
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) -
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)