- Sort Score
- Num 10 results
- Language All
Results 1111 - 1120 of 1,152 for Ensure (0.04 seconds)
-
android/guava-tests/test/com/google/common/base/PredicatesTest.java
} public void testHashCodeForBooleanOperations() { Predicate<@Nullable Integer> p1 = Predicates.isNull(); Predicate<@Nullable Integer> p2 = isOdd(); // Make sure that hash codes are not computed per-instance. assertEqualHashCode(Predicates.not(p1), Predicates.not(p1)); assertEqualHashCode(Predicates.and(p1, p2), Predicates.and(p1, p2));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 32.2K bytes - Click Count (0) -
cmd/erasure-healing_test.go
} // This would create the bucket. _, err = obj.HealBucket(ctx, bucket, madmin.HealOpts{ DryRun: false, Remove: false, }) if err != nil { t.Fatal(err) } // Stat the bucket to make sure that it was created. _, err = er.getDisks()[0].StatVol(t.Context(), bucket) if err != nil { t.Fatal(err) } } // Tests both object and bucket healing. func TestHealingVersioned(t *testing.T) {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 48.5K bytes - Click Count (0) -
docs/en/docs/alternatives.md
Another big feature needed by APIs is data validation, making sure that the data is valid, given certain parameters. For example, that some field is an `int`, and not some random string. This is especially useful for incoming data.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 22.2K bytes - Click Count (0) -
tensorflow/c/eager/c_api_experimental.h
// Deletes the eager Executor without waiting for enqueued nodes. Please call // TFE_ExecutorWaitForAllPendingNodes before calling this API if you want to // make sure all nodes are finished. TF_CAPI_EXPORT extern void TFE_DeleteExecutor(TFE_Executor*); // Returns true if the executor is in async mode. TF_CAPI_EXPORT extern bool TFE_ExecutorIsAsync(TFE_Executor*);
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Feb 21 22:37:46 GMT 2024 - 39.5K bytes - Click Count (1) -
guava-tests/test/com/google/common/primitives/DoublesTest.java
} public void testAsList_toArray_roundTrip() { double[] array = {0.0, 1.0, 2.0}; List<Double> list = Doubles.asList(array); double[] newArray = Doubles.toArray(list); // Make sure it returned a copy list.set(0, 4.0); assertThat(newArray).isEqualTo(new double[] {0.0, 1.0, 2.0}); newArray[1] = 5.0; assertThat((double) list.get(1)).isEqualTo(1.0); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 30.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/LongsTest.java
} public void testAsList_toArray_roundTrip() { long[] array = {0L, 1L, 2L}; List<Long> list = Longs.asList(array); long[] newArray = Longs.toArray(list); // Make sure it returned a copy list.set(0, 4L); assertThat(newArray).isEqualTo(new long[] {0L, 1L, 2L}); newArray[1] = 5L; assertThat((long) list.get(1)).isEqualTo(1L); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 28.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ShortsTest.java
} public void testAsList_toArray_roundTrip() { short[] array = {(short) 0, (short) 1, (short) 2}; List<Short> list = Shorts.asList(array); short[] newArray = Shorts.toArray(list); // Make sure it returned a copy list.set(0, (short) 4); assertThat(newArray).isEqualTo(new short[] {(short) 0, (short) 1, (short) 2}); newArray[1] = (short) 5; assertThat((short) list.get(1)).isEqualTo((short) 1); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 27.6K bytes - Click Count (0) -
src/bytes/buffer_test.go
} } type panicReader struct{ panic bool } func (r panicReader) Read(p []byte) (int, error) { if r.panic { panic("oops") } return 0, io.EOF } // Make sure that an empty Buffer remains empty when // it is "grown" before a Read that panics func TestReadFromPanicReader(t *testing.T) { // First verify non-panic behaviour var buf BufferCreated: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Nov 14 19:01:17 GMT 2025 - 19.4K bytes - Click Count (0) -
src/main/java/jcifs/smb1/netbios/NbtAddress.java
* issue on the host. There's not much we can do about it. Just * to suppress NPEs that would result we can create a possibly bogus * address. Pretty sure the below cannot actually thrown a UHE tho. */ try { localInetAddress = InetAddress.getByName("127.0.0.1"); } catch (final UnknownHostException ignored) {}
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 31.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableMap.java
return Maps.toStringImpl(this); } /** * Serialized type for all ImmutableMap instances. It captures the logical contents and they are * reconstructed using public factory methods. This ensures that the implementation types remain * as implementation details. */ @J2ktIncompatible // serialization static class SerializedForm<K, V> implements Serializable {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 02 19:58:40 GMT 2026 - 41.2K bytes - Click Count (0)