- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 3,023 for panics (0.18 sec)
-
src/flag/flag_test.go
-ZP0 value a flag whose String method panics when it is zero -ZP1 value a flag whose String method panics when it is zero -maxT timeout set timeout for dial panic calling String method on zero flag_test.zeroPanicker for flag ZP0: panic! panic calling String method on zero flag_test.zeroPanicker for flag ZP1: panic! ` func TestPrintDefaults(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:38:24 UTC 2024 - 22K bytes - Viewed (0) -
src/reflect/type.go
// t.IsVariadic() == true // // IsVariadic panics if the type's Kind is not Func. IsVariadic() bool // Elem returns a type's element type. // It panics if the type's Kind is not Array, Chan, Map, Pointer, or Slice. Elem() Type // Field returns a struct type's i'th field. // It panics if the type's Kind is not Struct. // It panics if i is not in the range [0, NumField()). Field(i int) StructField
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
tests/fuzz/kube_crd_fuzzer.go
// It first creates an object with a config // that has had pseudo-random values inserted. // When a valid object has been created, it // tries and convert that object. If this // conversion fails, it panics. func FuzzKubeCRD(data []byte) int { f := fuzz.NewConsumer(data) config := config2.Config{} err := f.GenerateStruct(&config) if err != nil { return 0 } // Create a valid obj:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 02 20:50:14 UTC 2023 - 1.5K bytes - Viewed (0) -
pkg/controller/nodeipam/ipam/test/utils.go
const NodePollInterval = 10 * time.Millisecond var AlwaysReady = func() bool { return true } // MustParseCIDR returns the CIDR range parsed from s or panics if the string // cannot be parsed. func MustParseCIDR(s string) *net.IPNet { _, ret, err := netutils.ParseCIDRSloppy(s) if err != nil { panic(err) } return ret } // FakeNodeInformer creates a fakeNodeInformer using the provided fakeNodeHandler.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 06 00:10:39 UTC 2022 - 2K bytes - Viewed (0) -
src/slices/slices.go
// The result is never nil. // Repeat panics if count is negative or if the result of (len(x) * count) // overflows. func Repeat[S ~[]E, E any](x S, count int) S { if count < 0 { panic("cannot be negative") } const maxInt = ^uint(0) >> 1 if hi, lo := bits.Mul(uint(len(x)), uint(count)); hi > 0 || lo > maxInt { panic("the result of (len(x) * count) overflows") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 29 14:01:59 UTC 2024 - 13.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/signal.go
// Only one of SetupSignalContext and SetupSignalHandler should be called, and only can // be called once. func SetupSignalContext() context.Context { close(onlyOneSignalHandler) // panics when called twice shutdownHandler = make(chan os.Signal, 2) ctx, cancel := context.WithCancel(context.Background()) signal.Notify(shutdownHandler, shutdownSignals...) go func() { <-shutdownHandler
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 06 14:30:27 UTC 2020 - 2K bytes - Viewed (0) -
src/crypto/internal/boring/fipstls/tls.go
// standard crypto (that is, even when Enabled = false). func Force() { required.Store(true) } // Abandon allows non-FIPS-approved settings. // If called from a non-test binary, it panics. func Abandon() { // Note: Not using boring.UnreachableExceptTests because we want // this test to happen even when boring.Enabled = false. name := runtime_arg0() // Allow _test for Go command, .test for Bazel,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 1.7K bytes - Viewed (0) -
src/text/template/option.go
// strings, either a simple string or "key=value". There can be at // most one equals sign in an option string. If the option string // is unrecognized or otherwise invalid, Option panics. // // Known options: // // missingkey: Control the behavior during execution if a map is // indexed with a key that is not present in the map. // // "missingkey=default" or "missingkey=invalid"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 1.9K bytes - Viewed (0) -
src/internal/reflectlite/swapper.go
// slice. // // Swapper panics if the provided interface is not a slice. func Swapper(slice any) func(i, j int) { v := ValueOf(slice) if v.Kind() != Slice { panic(&ValueError{Method: "Swapper", Kind: v.Kind()}) } // Fast path for slices of size 0 and 1. Nothing to swap. switch v.Len() { case 0: return func(i, j int) { panic("reflect: slice index out of range") } case 1:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:30 UTC 2024 - 2K bytes - Viewed (0) -
src/runtime/testdata/testexithooks/testexithooks.go
flag.Parse() switch *modeflag { case "simple": testSimple() case "goodexit": testGoodExit() case "badexit": testBadExit() case "panics": testPanics() case "callsexit": testHookCallsExit() case "exit2": testExit2() default: panic("unknown mode") } } func testSimple() { f1 := func() { println("foo") } f2 := func() { println("bar") } exithook.Add(exithook.Hook{F: f1})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 2.1K bytes - Viewed (0)