- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for discard (0.35 sec)
-
src/bufio/bufio_test.go
continue } } discarded, err := br.Discard(tt.n) if ge, we := fmt.Sprint(err), fmt.Sprint(tt.wantErr); discarded != tt.want || ge != we { t.Errorf("%s: Discard(%d) = (%v, %v); want (%v, %v)", tt.name, tt.n, discarded, ge, tt.want, we) continue } if bn := br.Buffered(); bn != tt.wantBuffered { t.Errorf("%s: after Discard, Buffered = %d; want %d", tt.name, bn, tt.wantBuffered) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 51.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
waitForDataFrames(Http2Connection.OKHTTP_CLIENT_WINDOW_SIZE) // Cancel the call and discard what we've buffered for the response body. This should free up // the connection flow-control window so new requests can proceed. call1.cancel() assertThat( response1.body.source().discard(1, TimeUnit.SECONDS), "Call should not have completed successfully.", ).isFalse()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 75.3K bytes - Viewed (0) -
src/archive/zip/reader_test.go
if err != nil { t.Fatal(err) } for i, f := range z.File { r, err := f.Open() if err != nil { continue } if f.UncompressedSize64 < 1e6 { n, err := io.Copy(io.Discard, r) if i == 3 && err != io.ErrUnexpectedEOF { t.Errorf("File[3] error = %v; want io.ErrUnexpectedEOF", err) } if err == nil && uint64(n) != f.UncompressedSize64 {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 55.6K bytes - Viewed (0) -
cmd/peer-rest-server.go
for m := range re { if err := enc.Encode(m); err != nil { s.writeErrorResponse(w, errors.New("Encoding mrf failed: "+err.Error())) return } } } // DevNull - everything goes to io.Discard func (s *peerRESTServer) DevNull(w http.ResponseWriter, r *http.Request) { if !s.IsValid(w, r) { s.writeErrorResponse(w, errors.New("invalid request")) return } globalNetPerfRX.Connect()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 04 11:32:32 UTC 2024 - 53.2K bytes - Viewed (0) -
cmd/test-utils_test.go
config.EnvRootPassword, } { os.Unsetenv(env) } // Set as non-distributed. globalIsDistErasure = false // Disable printing console messages during tests. color.Output = io.Discard // Disable Error logging in testing. logger.DisableLog = true // Uncomment the following line to see trace logs during unit tests. // logger.AddTarget(console.New()) // Set system resources to maximum.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 01 22:13:18 UTC 2024 - 77K bytes - Viewed (0) -
cmd/object-api-listobjects_test.go
foundPrefixes = append(foundPrefixes, result.Prefixes...) if !result.IsTruncated { break } marker = result.NextMarker if len(result.Objects) > 0 { // Discard marker, so it cannot resume listing. marker = result.Objects[len(result.Objects)-1].Name } } if len(testCase.result.Objects) != len(foundObjects) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 01 11:07:40 UTC 2024 - 73.1K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
} // addToFlag appends args to flag. func (p *Package) addToFlag(flag string, args []string) { if flag == "CFLAGS" { // We'll also need these when preprocessing for dwarf information. // However, discard any -g options: we need to be able // to parse the debug info, so stick to what we expect. for _, arg := range args { if !strings.HasPrefix(arg, "-g") { p.GccOptions = append(p.GccOptions, arg) } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Sep 18 15:07:34 UTC 2024 - 97.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
val editor = cache.edit("k1")!! cache.evictAll() assertThat(editor.newSource(0)).isNull() } @ParameterizedTest @ArgumentsSource(FileSystemParamProvider::class) fun `edit discarded after editor detached`(parameters: Pair<FileSystem, Boolean>) { setUp(parameters.first, parameters.second) set("k1", "a", "a") // Create an editor, then detach it. val editor = cache.edit("k1")!!
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 14:55:09 UTC 2024 - 75.8K bytes - Viewed (0) -
tensorflow/BUILD
# correspond to a particular, finalized design; rather, it relates to # developing one. # # The current aim of the 'v2' implementation is to allow 'unused' ops and # kernels to be discarded by the linker (to the benefit of binary size). bool_flag( name = "enable_registration_v2", build_setting_default = False, visibility = ["//visibility:public"], ) config_setting(
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Oct 16 05:28:35 UTC 2024 - 53.5K bytes - Viewed (0) -
tensorflow/c/c_api.h
TF_CAPI_EXPORT extern void TF_CloseSession(TF_Session*, TF_Status* status); // Destroy a session object. // // Even if error information is recorded in *status, this call discards all // local resources associated with the session. The session may not be used // during or after this call (and the session drops its reference to the // corresponding graph).
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Oct 26 21:08:15 UTC 2023 - 82.3K bytes - Viewed (0)