Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 1,190 for expectEq (0.06 sec)

  1. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

      }
    
      private static void checkSha1(String expected, byte[] key, String data) {
        checkSha1(expected, key, data.getBytes(UTF_8));
      }
    
      private static void checkSha1(String expected, byte[] key, byte[] data) {
        checkHmac(expected, Hashing.hmacSha1(key), data);
      }
    
      private static void checkMd5(String expected, byte[] key, String data) {
        checkMd5(expected, key, data.getBytes(UTF_8));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. cmd/bucket-lifecycle_test.go

    		},
    	}
    	for i, tc := range testCases {
    		actual, err := parseRestoreObjStatus(tc.restoreHdr)
    		if err != tc.expectedErr {
    			t.Fatalf("Test %d: got %v expected %v", i+1, err, tc.expectedErr)
    		}
    		if actual != tc.expectedStatus {
    			t.Fatalf("Test %d: got %v expected %v", i+1, actual, tc.expectedStatus)
    		}
    	}
    }
    
    // TestRestoreObjStatusRoundTrip restoreObjStatus roundtrip
    func TestRestoreObjStatusRoundTrip(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 31 09:57:57 UTC 2022
    - 7K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

        try {
          final CountDownLatch latch = new CountDownLatch(1);
          RuntimeException expected =
              assertThrows(RuntimeException.class, () -> GcFinalization.await(latch));
          assertWrapsInterruptedException(expected);
        } finally {
          interruptenator.shutdown();
          Thread.interrupted();
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. cmd/iam-etcd-store_test.go

    	}
    	for i, test := range specs {
    		result := extractPathPrefixAndSuffix(test.path, test.prefix, test.suffix)
    		if result != test.expected {
    			t.Errorf("unexpected result on test[%v]: expected[%s] but had [%s]", i, test.expected, result)
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

      protected final void expectReplacement(Entry<K, V> newEntry) {
        List<Entry<K, V>> expected = copyToList(getSampleElements());
        replaceValue(expected, newEntry);
        expectContents(expected);
      }
    
      private void replaceValue(List<Entry<K, V>> expected, Entry<K, V> newEntry) {
        for (ListIterator<Entry<K, V>> i = expected.listIterator(); i.hasNext(); ) {
          if (Helpers.equal(i.next().getKey(), newEntry.getKey())) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/net/InetAddressesTest.java

      }
    
      public void testForUriStringIPv4() {
        Inet4Address expected = (Inet4Address) InetAddresses.forString("192.168.1.1");
        assertEquals(expected, InetAddresses.forUriString("192.168.1.1"));
      }
    
      public void testForUriStringIPv6() {
        Inet6Address expected = (Inet6Address) InetAddresses.forString("3ffe:0:0:0:0:0:0:1");
        assertEquals(expected, InetAddresses.forUriString("[3ffe:0:0:0:0:0:0:1]"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

            }
    
            override fun source(): BufferedSource {
              return Buffer().writeUtf8("hello")
            }
          }
        assertFailsWith<IOException> {
          body.bytes()
        }.also { expected ->
          assertThat(expected.message).isEqualTo(
            "Content-Length (10) and stream length (5) disagree",
          )
        }
      }
    
      @Test
      fun bytesThrowsMoreThanIntMaxValue() {
        val body: ResponseBody =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 13K bytes
    - Viewed (0)
  8. cmd/admin-handlers_test.go

    				}
    			}
    		}
    		return 0, true
    	}
    
    	for i, tc := range testCases {
    		got := topLockEntries(tc.peerLocks, false)
    		if idx, ok := check(tc.expected, got); !ok {
    			t.Fatalf("%d: mismatch at %d \n expected %#v but got %#v", i, idx, tc.expected[idx], got[idx])
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. cmd/httprange_test.go

    			}
    			continue
    		}
    		h, err := rs.ToHeader()
    		if err != nil && !testCase.errExpected || err == nil && testCase.errExpected {
    			t.Errorf("expected error with invalid range: %v", err)
    		}
    		if h != testCase.spec {
    			t.Errorf("Case %d: translated to incorrect header: %s expected: %s",
    				i, h, testCase.spec)
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun May 05 16:56:21 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. cmd/bucket-lifecycle-handlers_test.go

    	credentials auth.Credentials, t *testing.T,
    ) {
    	// test cases with sample input and expected output.
    	testCases := []struct {
    		method     string
    		bucketName string
    		accessKey  string
    		secretKey  string
    		// Sent body
    		body []byte
    		// Expected response
    		expectedRespStatus int
    		lifecycleResponse  []byte
    		errorResponse      APIErrorResponse
    		shouldPass         bool
    	}{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top