- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,361 for rescorer (0.14 sec)
-
src/testing/run_example.go
outC <- buf.String() }() finished := false start := time.Now() // Clean up in a deferred call so we can recover if the example panics. defer func() { timeSpent := time.Since(start) // Close pipe, restore stdout, get output. w.Close() os.Stdout = stdout out := <-outC err := recover() ok = eg.processRunResult(out, timeSpent, finished, err) }() // Run example. eg.F() finished = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:56:32 UTC 2023 - 1.3K bytes - Viewed (0) -
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/services/DefaultLoggingManagerTest.groovy
0 * javaUtilLoggingSystem._ when: loggingManager.stop() then: 1 * slf4jLoggingSystem.restore(slf4jSnapshot) 1 * javaUtilLoggingSystem.restore(javaUtilSnapshot) 1 * loggingRouter.restore(routerSnapshot) 0 * loggingRouter._ 0 * slf4jLoggingSystem._ 0 * javaUtilLoggingSystem._ }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 15.8K bytes - Viewed (0) -
cmd/bucket-lifecycle.go
} // Expiry returns expiry of restored object and true if restore-object has completed. // Otherwise returns zero value of time.Time and false. func (r restoreObjStatus) Expiry() (time.Time, bool) { if r.Ongoing() { return time.Time{}, false } return r.expiry, true } // Ongoing returns true if restore-object is ongoing. func (r restoreObjStatus) Ongoing() bool {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 33.3K bytes - Viewed (0) -
src/testing/run_example_wasm.go
stdout := os.Stdout f := createTempFile(eg.Name) os.Stdout = f finished := false start := time.Now() // Clean up in a deferred call so we can recover if the example panics. defer func() { timeSpent := time.Since(start) // Restore stdout, get output and remove temporary file. os.Stdout = stdout var buf strings.Builder _, seekErr := f.Seek(0, io.SeekStart) _, readErr := io.Copy(&buf, f)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:56:32 UTC 2023 - 1.8K bytes - Viewed (0) -
pkg/kubelet/cm/dra/state/state_checkpoint_test.go
func assertStateEqual(t *testing.T, restoredState, expectedState ClaimInfoStateList) { assert.Equal(t, expectedState, restoredState, "expected ClaimInfoState does not equal to restored one") } // TODO (https://github.com/kubernetes/kubernetes/issues/123552): reconsider what data gets stored in checkpoints and whether that is really necessary. //
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:13 UTC 2024 - 11.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime_test.go
"context" "fmt" "io" "net/http" "os" "regexp" "strings" "sync" "testing" "time" ) func TestHandleCrash(t *testing.T) { defer func() { if x := recover(); x == nil { t.Errorf("Expected a panic to recover from") } }() defer HandleCrash() panic("Test Panic") } func TestCustomHandleCrash(t *testing.T) { old := PanicHandlers defer func() { PanicHandlers = old }()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 4.5K bytes - Viewed (0) -
cmd/bucket-lifecycle_test.go
restoreStatus restoreObjStatus ondisk bool }{ { // restore in progress restoreStatus: ongoingRestoreObj(), ondisk: false, }, { // restore completed but expired restoreStatus: completedRestoreObj(time.Now().Add(-time.Hour)), ondisk: false, }, { // restore completed restoreStatus: completedRestoreObj(time.Now().Add(time.Hour)),
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 31 09:57:57 UTC 2022 - 7K bytes - Viewed (0) -
src/runtime/callers_test.go
testCallersEqual(t, pcs, want) }() defer func() { if recover() == nil { t.Fatal("did not recover from panic") } }() panic(1) } func TestCallersAbortedPanic(t *testing.T) { want := []string{"runtime.Callers", "runtime_test.TestCallersAbortedPanic.func2", "runtime_test.TestCallersAbortedPanic"} defer func() { r := recover() if r != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 21:36:31 UTC 2023 - 12.1K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/config/LoggingSystem.java
/** * Some configurable logging system, whose state can be snapshot, mutated and restored. */ public interface LoggingSystem { /** * Snapshots the current configuration state of this logging system. */ Snapshot snapshot(); /** * Resets this logging system to some previous configuration state. */ void restore(Snapshot state); interface Snapshot { }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 1K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/ops/restore_ops.h
#include "tensorflow/core/framework/types.pb.h" #include "tensorflow/core/platform/status.h" namespace tensorflow { namespace internal { // TODO(bmzhao): Add a function to restore multiple tensors in one call. // Restores a single non-partioned tensorhandle of dtype `dtype`, using // checkpoint at `prefix`, with a value stored in `checkpoint_key`. Status SingleRestore(ImmediateExecutionContext* ctx, const std::string& prefix,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Aug 30 21:44:45 UTC 2022 - 1.6K bytes - Viewed (0)