- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 440 for original (0.11 sec)
-
src/internal/fuzz/mutator_test.go
v := []any{"hello"} m := newMutator() m.mutate(v, 1024) original := v[0].(string) originalCopy := make([]byte, len(original)) copy(originalCopy, []byte(original)) for i := 0; i < 25; i++ { m.mutate(v, 1024) } if !bytes.Equal([]byte(original), originalCopy) { t.Fatalf("string was mutated: got %x, want %x", []byte(original), originalCopy) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 2.3K bytes - Viewed (0) -
src/runtime/checkptr.go
} for _, original := range originals { if base == checkptrBase(original) { return } } throw("checkptr: pointer arithmetic result points to invalid allocation") } // checkptrBase returns the base address for the allocation containing // the address p. // // Importantly, if p1 and p2 point into the same variable, then // checkptrBase(p1) == checkptrBase(p2). However, the converse/inverse
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 3.6K bytes - Viewed (0) -
src/testing/iotest/logger_test.go
err error } func (w errWriter) Write([]byte) (int, error) { return 0, w.err } func TestWriteLogger(t *testing.T) { olw := log.Writer() olf := log.Flags() olp := log.Prefix() // Revert the original log settings before we exit. defer func() { log.SetFlags(olf) log.SetPrefix(olp) log.SetOutput(olw) }() lOut := new(strings.Builder) log.SetPrefix("lw: ") log.SetOutput(lOut) log.SetFlags(0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 07:03:10 UTC 2022 - 3.4K bytes - Viewed (0) -
src/cmd/go/internal/web/http.go
// securityPreservingHTTPClient returns a client that is like the original // but rejects redirects to plain-HTTP URLs if the original URL was secure. func securityPreservingHTTPClient(original *http.Client) *http.Client { c := new(http.Client) *c = *original c.CheckRedirect = func(req *http.Request, via []*http.Request) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 10 17:34:27 UTC 2023 - 9.7K bytes - Viewed (0) -
src/math/remainder.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package math // The original C code and the comment below are from // FreeBSD's /usr/src/lib/msun/src/e_remainder.c and came // with this notice. The go code is a simplified version of // the original C. // // ==================================================== // Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 2K bytes - Viewed (0) -
src/sort/slice.go
"math/bits" ) // Slice sorts the slice x given the provided less function. // It panics if x is not a slice. // // The sort is not guaranteed to be stable: equal elements // may be reversed from their original order. // For a stable sort, use [SliceStable]. // // The less function must satisfy the same requirements as // the Interface type's Less method. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 28 16:40:32 UTC 2023 - 1.8K bytes - Viewed (0) -
src/slices/iter.go
s := Collect(seq) SortFunc(s, cmp) return s } // SortedStableFunc collects values from seq into a new slice. // It then sorts the slice while keeping the original order of equal elements, // using the comparison function to compare elements. // It returns the new slice. func SortedStableFunc[E any](seq iter.Seq[E], cmp func(E, E) int) []E { s := Collect(seq) SortStableFunc(s, cmp)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:40:32 UTC 2024 - 2.9K bytes - Viewed (0) -
src/crypto/x509/pkcs8_test.go
if err != nil { t.Errorf("%s: failed to marshal into PKCS#8: %s", test.name, err) continue } if !bytes.Equal(derBytes, reserialised) { t.Errorf("%s: marshaled PKCS#8 didn't match original: got %x, want %x", test.name, reserialised, derBytes) continue } if ecKey, isEC := privKey.(*ecdsa.PrivateKey); isEC { ecdhKey, err := ecKey.ECDH() if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 19 16:45:10 UTC 2022 - 9K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue59740.go
func f(F[int]) {} func g[T any](F[T]) {} func _() { g(f /* ERROR "type func(F[int]) of f does not match F[T] (cannot infer T)" */) // type inference/unification must not panic } // original test case from issue type List[T any] func(T, func(T, List[T]) T) T func nil[T any](n T, _ List[T]) T { return n }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 21 12:32:24 UTC 2023 - 800 bytes - Viewed (0) -
src/go/printer/printer_test.go
// ... c*t.z } ` // parse original f1, err := parser.ParseFile(fset, "src", src, parser.ParseComments) if err != nil { t.Fatal(err) } // pretty-print original var buf bytes.Buffer err = (&Config{Mode: UseSpaces | SourcePos, Tabwidth: 8}).Fprint(&buf, fset, f1) if err != nil { t.Fatal(err) } // parse pretty printed original
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 20.4K bytes - Viewed (0)