- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 2,835 for panic2 (0.13 sec)
-
src/log/log.go
os.Exit(1) } // Panic is equivalent to [Print] followed by a call to panic(). func Panic(v ...any) { s := fmt.Sprint(v...) std.Output(2, s) panic(s) } // Panicf is equivalent to [Printf] followed by a call to panic(). func Panicf(format string, v ...any) { s := fmt.Sprintf(format, v...) std.Output(2, s) panic(s) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 23 22:56:07 UTC 2023 - 12.9K bytes - Viewed (0) -
src/testing/panic_test.go
{ desc: "Issue 48502: call runtime.Goexit in t.Cleanup after panic", flags: []string{"-test.run=^TestGoexitInCleanupAfterPanicHelper$"}, want: `panic: die panic: test executed panic(nil) or runtime.Goexit`, }, { desc: "Issue 48515: call t.Run in t.Cleanup should trigger panic", flags: []string{"-test.run=^TestCallRunInCleanupHelper$"}, want: `panic: testing: t.Run called during t.Cleanup`, }, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 27 16:49:24 UTC 2023 - 7.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go
t.Errorf("got Write error of %v; expected %v", err, http.ErrHandlerTimeout) } // Panics doPanic <- "inner handler panics" res, err = http.Get(ts.URL) if err != nil { t.Fatal(err) } if res.StatusCode != http.StatusInternalServerError { t.Errorf("got res.StatusCode %d; expected %d due to panic", res.StatusCode, http.StatusInternalServerError) } select { case err := <-gotPanic:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 18.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/internal/language/tags.go
b, err := ParseBase(s) if err != nil { panic(err) } return b } // MustParseScript is like ParseScript, but panics if the given script cannot be // parsed. It simplifies safe initialization of Script values. func MustParseScript(s string) Script { scr, err := ParseScript(s) if err != nil { panic(err) } return scr } // MustParseRegion is like ParseRegion, but panics if the given region cannot be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 1.2K bytes - Viewed (0) -
src/encoding/gob/error.go
import "fmt" // Errors in decoding and encoding are handled using panic and recover. // Panics caused by user error (that is, everything except run-time panics // such as "index out of bounds" errors) do not leave the file that caused // them, but are instead turned into plain error returns. Encoding and // decoding functions and methods that do not return an error either use // panic to report an error or are guaranteed error-free.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 23:03:07 UTC 2022 - 1.3K bytes - Viewed (0) -
test/fixedbugs/bug142.go
// license that can be found in the LICENSE file. package main func panic1(s string) bool { panic(s); } func main() { x := false && panic1("first") && panic1("second"); x = x == true && panic1("first") && panic1("second"); } /* ; 6.out second panic PC=0x250f98 mainĀ·panic1+0x36 /Users/rsc/goX/test/bugs/bug142.go:6 mainĀ·panic1(0xae30, 0x0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 18 21:15:42 UTC 2012 - 675 bytes - Viewed (0) -
src/sync/oncefunc.go
panic(p) } }() f() f = nil // Do not keep f alive after invoking it. valid = true // Set only if f does not panic. } return func() { once.Do(g) if !valid { panic(p) } } } // OnceValue returns a function that invokes f only once and returns the value // returned by f. The returned function may be called concurrently. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 17:31:33 UTC 2023 - 2K bytes - Viewed (0) -
src/syscall/js/js.go
// It panics if v is not a JavaScript number. func (v Value) Int() int { return int(v.float("Value.Int")) } // Bool returns the value v as a bool. // It panics if v is not a JavaScript boolean. func (v Value) Bool() bool { switch v.ref { case valueTrue.ref: return true case valueFalse.ref: return false default: panic(&ValueError{"Value.Bool", v.Type()}) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 19.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/finisher/finisher.go
func (r *result) Return() (runtime.Object, error) { switch { case r.reason != nil: // panic has higher precedence, the goroutine executing ResultFunc has panic'd, // so propagate a panic to the caller. panic(r.reason) case r.err != nil: return nil, r.err default: // if we are here, it means neither a panic, nor an error if status, ok := r.object.(*metav1.Status); ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 07 14:20:33 UTC 2021 - 6K bytes - Viewed (0) -
src/iter/iter.go
yield := func(v1 V) bool { if done { return false } if !yieldNext { panic("iter.Pull: yield called again before next") } yieldNext = false v, ok = v1, true race.Release(unsafe.Pointer(&racer)) coroswitch(c) race.Acquire(unsafe.Pointer(&racer)) return !done } // Recover and propagate panics from seq. defer func() { if p := recover(); p != nil { panicValue = p
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:28 UTC 2024 - 6.6K bytes - Viewed (0)