- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for Implementation (0.43 sec)
-
src/testing/testing.go
// command-line flags, including those of the testing package, it should call // flag.Parse explicitly. Command line flags are always parsed by the time test // or benchmark functions run. // // A simple implementation of TestMain is: // // func TestMain(m *testing.M) { // // call flag.Parse() here if TestMain uses flags // os.Exit(m.Run()) // } //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0) -
src/net/http/transport.go
// Copyright 2011 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. // HTTP client implementation. See RFC 7230 through 7235. // // This is the low-level Transport implementation of RoundTripper. // The high-level interface is in client.go. package http import ( "bufio" "compress/gzip" "container/list" "context" "crypto/tls" "errors"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 91K bytes - Viewed (0) -
src/math/big/int_test.go
b := new(Int).SetBytes(bBytes) d := new(Int).GCD(x, y, a, b) x.Mul(x, a) y.Mul(y, b) x.Add(x, y) return x.Cmp(d) == 0 } // euclidExtGCD is a reference implementation of Euclid's // extended GCD algorithm for testing against optimized algorithms. // Requirements: a, b > 0 func euclidExtGCD(a, b *Int) (g, x, y *Int) { A := new(Int).Set(a) B := new(Int).Set(b)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0) -
src/crypto/tls/handshake_server_test.go
} } // Note: see comment in handshake_test.go for details of how the reference // tests work. // serverTest represents a test of the TLS server handshake against a reference // implementation. type serverTest struct { // name is a freeform string identifying the test and the file in which // the expected results will be stored. name string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 64.7K bytes - Viewed (0) -
src/runtime/mprof.go
// them is responsible. // // Matching that behavior for runtime-internal locks will require identifying // which Ms are blocked on the mutex. The semaphore-based implementation is // ready to allow that, but the futex-based implementation will require a bit // more work. Until then, we report contention on runtime-internal locks with a // call stack taken from the unlock call (like the rest of the user-space
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 53.3K bytes - Viewed (0) -
src/runtime/traceback.go
// // Typical use of an unwinder looks like: // // var u unwinder // for u.init(gp, 0); u.valid(); u.next() { // // ... use frame info in u ... // } // // Implementation note: This is carefully structured to be pointer-free because // tracebacks happen in places that disallow write barriers (e.g., signals). // Even if this is stack-allocated, its pointer-receiver methods don't know that
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 55.1K bytes - Viewed (0) -
src/os/os_test.go
t.Log(errormsg) t.Log("A filesystem is mounted with noatime; ignoring.") } else { switch runtime.GOOS { case "netbsd", "dragonfly": // On a 64-bit implementation, birth time is generally supported and cannot be changed. // When supported, atime update is restricted and depends on the file system and on the // OS configuration.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0) -
src/runtime/mgcscavenge.go
// sleepStub is a stub used for testing to avoid actually having // the scavenger sleep. // // Unlike the other stubs, this is not populated if left nil // Instead, it is called when non-nil because any valid implementation // of this function basically requires closing over this scavenger // state, and allocating a closure is not allowed in the runtime as // a matter of policy. sleepStub func(n int64) int64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:48:45 UTC 2024 - 52.3K bytes - Viewed (0) -
src/runtime/mgc.go
) // heapObjectsCanMove always returns false in the current garbage collector. // It exists for go4.org/unsafe/assume-no-moving-gc, which is an // unfortunate idea that had an even more unfortunate implementation. // Every time a new Go release happened, the package stopped building, // and the authors had to add a new file with a new //go:build line, and // then the entire ecosystem of packages with that as a dependency had to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go
//sys TimeBeginPeriod (period uint32) (err error) [failretval != 0] = winmm.timeBeginPeriod //sys TimeEndPeriod (period uint32) (err error) [failretval != 0] = winmm.timeEndPeriod // syscall interface implementation for other packages // GetCurrentProcess returns the handle for the current process. // It is a pseudo handle that does not need to be closed. // The returned error is always nil. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 22:18:42 UTC 2024 - 82.8K bytes - Viewed (0)