- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 1,187 for EXPECTED (0.19 sec)
-
internal/dsync/drwmutex_test.go
locked := testSimpleWriteLock(t, 10*testDrwMutexAcquireTimeout) expected := true if locked != expected { t.Errorf("TestSimpleWriteLockAcquired(): \nexpected %#v\ngot %#v", expected, locked) } } func TestSimpleWriteLockTimedOut(t *testing.T) { locked := testSimpleWriteLock(t, testDrwMutexAcquireTimeout) expected := false if locked != expected {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Dec 24 03:49:07 UTC 2022 - 9.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java
StringBuilder input = new StringBuilder(); StringBuilder expected = new StringBuilder(); for (int i = 256; i < 1024; i++) { input.append((char) i); expected.append("[" + i + "]"); } assertEquals(expected.toString(), SIMPLE_ESCAPER.escape(input.toString())); } public void testSurrogatePairs() { UnicodeEscaper e = SIMPLE_ESCAPER;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 5.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java
StringBuilder input = new StringBuilder(); StringBuilder expected = new StringBuilder(); for (int i = 256; i < 1024; i++) { input.append((char) i); expected.append("[" + i + "]"); } assertEquals(expected.toString(), SIMPLE_ESCAPER.escape(input.toString())); } public void testSurrogatePairs() { UnicodeEscaper e = SIMPLE_ESCAPER;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 5.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java
fail("size mismatch: " + reportContext(expectedList)); } for (int i = 0; i < expectedList.size(); i++) { E expected = expectedList.get(i); E actual = getList().get(i); if (expected != actual && (expected == null || !expected.equals(actual))) { fail("mismatch at index " + i + ": " + reportContext(expectedList)); } } } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java
fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { } try { multiset.add(entry.getElement()); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { } try { multiset.addAll(singletonList(entry.getElement())); fail("Expected IllegalArgumentException");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 26.1K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list_test.go
"istio-injection": "enabled", }), } client := kube.NewFakeClient(nss...) expected := sets.New[string]("default", "no-ambient") actual, err := getNamespaces(context.TODO(), client, "istio-system") assert.NoError(t, err) for _, ns := range actual { assert.Equal(t, true, expected.Contains(ns.Name)) } } func Test_injectionDisabled(t *testing.T) { cases := []struct {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 5.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt
@Test fun readIndexedHeaderFieldIndex0() { bytesIn.writeByte(0x80) // == Indexed - Add idx = 0 assertFailsWith<IOException> { hpackReader!!.readHeaders() }.also { expected -> assertThat(expected.message).isEqualTo("index == 0") } } // Example taken from twitter/hpack DecoderTest.testIllegalIndex @Test fun readIndexedHeaderFieldTooLargeIndex() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 38.2K bytes - Viewed (0) -
internal/handlers/proxy_test.go
package handlers import ( "net/http" "testing" ) type headerTest struct { key string // header key val string // header val expected string // expected result } func TestGetScheme(t *testing.T) { headers := []headerTest{ {xForwardedProto, "https", "https"}, {xForwardedProto, "http", "http"}, {xForwardedProto, "HTTP", "http"},
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Dec 22 00:56:55 UTC 2023 - 3.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java
public void testEquals() { resetContainer(mapEntry(k0(), v0()), mapEntry(k1(), v0()), mapEntry(k0(), v3())); Map<K, Collection<V>> expected = Maps.newHashMap(); expected.put(k0(), Lists.newArrayList(v0(), v3())); expected.put(k1(), Lists.newArrayList(v0())); new EqualsTester().addEqualityGroup(expected, multimap().asMap()).testEquals(); } @CollectionSize.Require(SEVERAL) public void testEntrySetEquals() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java
public @Nullable Object getIfPresent(Object key) { return valueRef.get(); } }; UncheckedExecutionException expected = assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked(new Object())); assertThat(expected).hasCauseThat().isEqualTo(cause); Object newValue = new Object(); valueRef.set(newValue); assertSame(newValue, cache.getUnchecked(new Object()));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 5K bytes - Viewed (0)