- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 56 for panicmem (0.16 sec)
-
src/cmd/cgo/internal/test/test.go
return f; } void init() { SansTypeface = loadfont(); } // issue 5242 // Cgo incorrectly computed the alignment of structs // with no Go accessible fields as 0, and then panicked on // modulo-by-zero computations. // issue 50987 // disable arm64 GCC warnings #cgo CFLAGS: -Wno-psabi -Wno-unknown-warning-option typedef struct { } foo; typedef struct { int x : 1;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go
for i := 0; i < workersNumber; i++ { go func() { // panics don't cross goroutine boundaries defer utilruntime.HandleCrash(func(panicReason interface{}) { errs <- fmt.Errorf("DeleteCollection goroutine panicked: %v", panicReason) }) defer wg.Done() for item := range toProcess { accessor, err := meta.Accessor(item) if err != nil { errs <- err return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 19 23:22:44 UTC 2024 - 60.8K bytes - Viewed (0) -
src/runtime/crash_test.go
// we're not guaranteeing a fully unbroken trace until the last // byte... seen = true } } } if err := cmd.Wait(); err == nil { t.Error("the process should have panicked") } if !seenSync { t.Errorf("expected at least one full generation to have been emitted before the trace was considered broken") } if !seen {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 19:46:10 UTC 2024 - 27K bytes - Viewed (0) -
src/encoding/json/encode_test.go
defer func() { if got := recover(); !reflect.DeepEqual(got, 0xdead) { t.Errorf("panic() = (%T)(%v), want 0xdead", got, got) } }() Marshal(&marshalPanic{}) t.Error("Marshal should have panicked") } func TestMarshalUncommonFieldNames(t *testing.T) { v := struct { A0, À, Aβ int }{} b, err := Marshal(v) if err != nil { t.Fatal("Marshal error:", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 29.4K bytes - Viewed (0) -
src/slices/slices_test.go
{"s[i:j] is valid and j > len(s)", s, nil, 0, 4}, } { ss, vv := Clone(test.s), Clone(test.v) if !panics(func() { _ = Replace(ss, test.i, test.j, vv...) }) { t.Errorf("Replace %s: should have panicked", test.name) } } } func TestReplaceGrow(t *testing.T) { // When Replace needs to allocate a new slice, we want the original slice // to not be changed. a, b, c, d, e, f := 1, 2, 3, 4, 5, 6
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:06 UTC 2024 - 33.2K bytes - Viewed (0) -
src/net/http/transport_test.go
t.Fatalf("proxyURL: %v", err) } tr := &Transport{Proxy: ProxyURL(proxyURL)} req, _ := NewRequest("GET", "https://golang.org/", nil) res, err, panicked := doFetchCheckPanic(tr, req) if panicked { t.Error("panicked, expecting an error") } if res != nil && res.Body != nil { io.Copy(io.Discard, res.Body) res.Body.Close() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 192.6K bytes - Viewed (0) -
src/net/http/request_test.go
if err := isSticky(rc); err != nil { t.Errorf("%d. error: %v", i, err) } } } // Issue 45101: maxBytesReader's Read panicked when n < -1. This test // also ensures that Read treats negative limits as equivalent to 0. func TestMaxBytesReaderDifferentLimits(t *testing.T) { const testStr = "1234" tests := [...]struct { limit int64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 18:42:34 UTC 2024 - 44K bytes - Viewed (0) -
src/html/template/escape_test.go
tmpl := Must(New("x").Parse("<html>{{0 | .SomeMethod}}</html>\n")) tryExec := func() string { defer func() { panicValue := recover() if panicValue != nil { t.Errorf("panicked: %v\n", panicValue) } }() var b strings.Builder tmpl.Execute(&b, Issue7379(0)) return b.String() } for i := 0; i < 3; i++ { str := tryExec()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 16 03:29:27 UTC 2023 - 56.2K bytes - Viewed (0) -
src/cmd/compile/internal/rangefunc/rewrite.go
abi.RF_DONE = 0 // body of loop has exited in a non-panic way abi.RF_READY = 1 // body of loop has not exited yet, is not running abi.RF_PANIC = 2 // body of loop is either currently running, or has panicked abi.RF_EXHAUSTED = 3 // iterator function call, e.g. f(func(x t){...}), returned so the sequence is "exhausted". abi.RF_MISSING_PANIC = 4 // used to report errors. The value of #stateK transitions
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 41.6K bytes - Viewed (0) -
src/strings/strings_test.go
} runTestCases := func(prefix string, tests []testCase) { for i, tt := range tests { err := repeat(tt.s, tt.count) if tt.errStr == "" { if err != nil { t.Errorf("#%d panicked %v", i, err) } continue } if err == nil || !Contains(err.Error(), tt.errStr) { t.Errorf("%s#%d got %q want %q", prefix, i, err, tt.errStr) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 53K bytes - Viewed (0)