- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 958 for wcap (0.06 sec)
-
test/chancap.go
} if len(c) != 3 || cap(c) != 10 { println("chan len/cap ", len(c), cap(c), " want 3 10") panic("fail") } c = make(T) if len(c) != 0 || cap(c) != 0 { println("chan len/cap ", len(c), cap(c), " want 0 0") panic("fail") } n := -1 shouldPanic("makechan: size out of range", func() { _ = make(T, n) }) shouldPanic("makechan: size out of range", func() { _ = make(T, int64(n)) }) if ptrSize == 8 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 26 14:06:28 UTC 2018 - 1.6K bytes - Viewed (0) -
platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/io/IoConsumerTest.groovy
* limitations under the License. */ package org.gradle.internal.io import static org.gradle.internal.io.IoConsumer.wrap class IoConsumerTest extends AbstractIoTest { def "executed when it doesn't throw"() { when: String actual = null wrap({ String payload -> actual = payload }).accept("lajos") then: actual == "lajos" } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:22:02 UTC 2023 - 1.1K bytes - Viewed (0) -
test/ken/array.go
// Test arrays and slices. package main func setpd(a []int) { // print("setpd a=", a, " len=", len(a), " cap=", cap(a), "\n"); for i := 0; i < len(a); i++ { a[i] = i } } func sumpd(a []int) int { // print("sumpd a=", a, " len=", len(a), " cap=", cap(a), "\n"); t := 0 for i := 0; i < len(a); i++ { t += a[i] } // print("sumpd t=", t, "\n"); return t }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 2.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/PrimitivesTest.java
assertThat(Primitives.isWrapperType(void.class)).isFalse(); } public void testWrap() { assertThat(Primitives.wrap(int.class)).isSameInstanceAs(Integer.class); assertThat(Primitives.wrap(Integer.class)).isSameInstanceAs(Integer.class); assertThat(Primitives.wrap(String.class)).isSameInstanceAs(String.class); } public void testUnwrap() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Jun 01 09:32:35 UTC 2023 - 3K bytes - Viewed (0) -
pkg/test/failer_test.go
t.Run("fail", func(t *testing.T) { if err := Wrap(func(t Failer) { t.Fatalf("failed") }); err == nil { t.Fatalf("expected error, got none") } }) t.Run("success", func(t *testing.T) { if err := Wrap(func(t Failer) {}); err != nil { t.Fatalf("expected no error, got: %v", err) } }) t.Run("cleanup", func(t *testing.T) { done := false if err := Wrap(func(t Failer) { t.Cleanup(func() {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jan 07 18:42:17 UTC 2021 - 1.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingSortedSetTest.java
return wrap(delegate); } }); } public void testEquals() { SortedSet<String> set1 = ImmutableSortedSet.of("one"); SortedSet<String> set2 = ImmutableSortedSet.of("two"); new EqualsTester() .addEqualityGroup(set1, wrap(set1), wrap(set1)) .addEqualityGroup(set2, wrap(set2)) .testEquals(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 17 15:49:06 UTC 2023 - 5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/responsewriter/wrapper_test.go
tests := []struct { name string wrap func() (http.ResponseWriter, http.ResponseWriter) panicExpected bool }{ { name: "not wrapped", wrap: func() (http.ResponseWriter, http.ResponseWriter) { original := &FakeResponseWriter{} return original, original }, }, { name: "wrapped once", wrap: func() (http.ResponseWriter, http.ResponseWriter) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 17 12:58:53 UTC 2021 - 8.1K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental.cc
s, tracing_ctx->AddParameter(static_cast<DataType>(dtype), partial_shape, &t)); return wrap(t); } void TF_DeleteExecutionContext(TF_ExecutionContext* c) { unwrap(c)->Release(); } TF_AbstractOp* TF_NewAbstractOp(TF_ExecutionContext* c) { return wrap((unwrap(c)->CreateOperation())); } void TF_DeleteAbstractOp(TF_AbstractOp* op) { unwrap(op)->Release(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 10:15:17 UTC 2024 - 9K bytes - Viewed (0) -
cmd/kubeadm/app/phases/addons/proxy/proxy.go
}) if err != nil { return []byte(""), errors.Wrap(err, "error when parsing kube-proxy configmap template") } if printManifest { return configMapBytes, nil } kubeproxyConfigMap := &v1.ConfigMap{} if err := kuberuntime.DecodeInto(clientsetscheme.Codecs.UniversalDecoder(), configMapBytes, kubeproxyConfigMap); err != nil { return []byte(""), errors.Wrap(err, "unable to decode kube-proxy configmap") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 26 13:23:44 UTC 2023 - 8.1K bytes - Viewed (0) -
pkg/test/failer.go
// The function must be called within a goroutine, or calls to Fatal will try to terminate the outer // test context, which will cause the test to panic. The Wrap function handles this automatically type errorWrapper struct { mu sync.RWMutex failed error cleanup func() } // Wrap executes a function with a fake Failer, and returns an error if the test failed. This allows
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Jul 15 23:58:50 UTC 2023 - 3.5K bytes - Viewed (0)