- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 200 for ifelse (0.49 sec)
-
staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go
return false } checkObj, err := registry.Get(ctx, pod.Name, &metav1.GetOptions{}) if err != nil { t.Errorf("Unexpected error: %v", err) return false } if e, a := obj, checkObj; !reflect.DeepEqual(e, a) { t.Errorf("Expected %#v, got %#v", e, a) return false } return true } func TestStoreUpdate(t *testing.T) { podA := &example.Pod{ ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "test"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 101.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
public void testSubmitAsync_asyncCallable_returnsInterruptedFuture() throws InterruptedException { assertThat(Thread.interrupted()).isFalse(); SettableFuture<Integer> cancelledFuture = SettableFuture.create(); cancelledFuture.cancel(true); assertThat(Thread.interrupted()).isFalse(); ListenableFuture<Integer> future = submitAsync(constantAsyncCallable(cancelledFuture), directExecutor());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 144.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
public void testSubmitAsync_asyncCallable_returnsInterruptedFuture() throws InterruptedException { assertThat(Thread.interrupted()).isFalse(); SettableFuture<Integer> cancelledFuture = SettableFuture.create(); cancelledFuture.cancel(true); assertThat(Thread.interrupted()).isFalse(); ListenableFuture<Integer> future = submitAsync(constantAsyncCallable(cancelledFuture), directExecutor());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 144.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
if (PruneForReverseReachability(graph_.get(), prune_start)) { VLOG(1) << "Pruned unused nodes in graphdef"; } else { VLOG(1) << "No unused nodes in graphdef to prune"; } } else { VLOG(1) << "No output nodes specified, skipping pruning"; } } else { VLOG(1) << "Pruning unused nodes in graphdef is disabled"; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0) -
src/cmd/go/internal/work/exec.go
// Not an escape character after all. flag = append(flag, '\\', c) escaped = false continue } } if c == '\n' { // “If a <newline> follows the <backslash>, the shell shall interpret // this as line continuation.” } else { flag = append(flag, c) } escaped = false continue } if quote != 0 && c == quote { quote = 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 14:46:37 UTC 2024 - 105.6K bytes - Viewed (0) -
cmd/admin-handlers.go
capacityNeeded := uint64(concurrent * size) capacity := GetTotalUsableCapacityFree(storageInfo.Disks, storageInfo) if capacity < capacityNeeded { return false, false, fmt.Sprintf("not enough usable space available to perform speedtest - expected %s, got %s", humanize.IBytes(capacityNeeded), humanize.IBytes(capacity)) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 98K bytes - Viewed (0) -
pkg/printers/internalversion/printers.go
status = "Complete" } else if hasJobCondition(obj.Status.Conditions, batch.JobFailed) { status = "Failed" } else if obj.ObjectMeta.DeletionTimestamp != nil { status = "Terminating" } else if hasJobCondition(obj.Status.Conditions, batch.JobSuspended) { status = "Suspended" } else if hasJobCondition(obj.Status.Conditions, batch.JobFailureTarget) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 14:04:15 UTC 2024 - 128.3K bytes - Viewed (0) -
src/database/sql/sql.go
// If a connRequest was fulfilled or the *driverConn was placed in the // freeConn list, then true is returned, otherwise false is returned. func (db *DB) putConnDBLocked(dc *driverConn, err error) bool { if db.closed { return false } if db.maxOpen > 0 && db.numOpen > db.maxOpen { return false } if req, ok := db.connRequests.TakeRandom(); ok { if err == nil { dc.inUse = true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 103.6K bytes - Viewed (0) -
src/net/http/server.go
case "", "http/1.1", "http/1.0": return false } return true } const ( runHooks = true skipHooks = false ) func (c *conn) setState(nc net.Conn, state ConnState, runHook bool) { srv := c.server switch state { case StateNew: srv.trackConn(c, true) case StateHijacked, StateClosed: srv.trackConn(c, false) } if state > 0xff || state < 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 123.4K bytes - Viewed (0) -
src/crypto/x509/verify_test.go
}{ {"", "anything.com", false, true}, {"example.com", "example.com", false, true}, {"example.com.", "example.com", true, false}, {"example.com", "example.com.", true, false}, {"example.com", "ExAmPle.coM", false, true}, {"example.com", "exampl1.com", false, false}, {"example.com", "www.ExAmPle.coM", false, true}, {"example.com", "sub.www.ExAmPle.coM", false, true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 110.2K bytes - Viewed (0)