- Sort Score
- Result 10 results
- Languages All
Results 881 - 890 of 920 for Ensure (0.04 sec)
-
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 Buffer
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Sep 03 20:55:15 UTC 2024 - 18.6K bytes - Viewed (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( UnknownHostException ignored ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 30.1K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenRepositorySystemSupplier.java
* graph construction. * <p> * Extend this class {@code createXXX()} methods and override to customize, if needed. The contract of this class makes * sure that these (potentially overridden) methods are invoked only once, and instance created by those methods are * memorized and kept as long as supplier instance is kept open. * <p>
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 45.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/FloatsTest.java
} public void testAsList_toArray_roundTrip() { float[] array = {(float) 0, (float) 1, (float) 2}; List<Float> list = Floats.asList(array); float[] newArray = Floats.toArray(list); // Make sure it returned a copy list.set(0, (float) 4); assertThat(newArray).isEqualTo(new float[] {(float) 0, (float) 1, (float) 2}); newArray[1] = (float) 5; assertThat((float) list.get(1)).isEqualTo((float) 1); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 30.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/IntsTest.java
} public void testAsList_toArray_roundTrip() { int[] array = {(int) 0, (int) 1, (int) 2}; List<Integer> list = Ints.asList(array); int[] newArray = Ints.toArray(list); // Make sure it returned a copy list.set(0, (int) 4); assertThat(newArray).isEqualTo(new int[] {(int) 0, (int) 1, (int) 2}); newArray[1] = (int) 5; assertThat((int) list.get(1)).isEqualTo((int) 1); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 29.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/DoublesTest.java
public void testAsList_toArray_roundTrip() { double[] array = {(double) 0, (double) 1, (double) 2}; List<Double> list = Doubles.asList(array); double[] newArray = Doubles.toArray(list); // Make sure it returned a copy list.set(0, (double) 4); assertThat(newArray).isEqualTo(new double[] {(double) 0, (double) 1, (double) 2}); newArray[1] = (double) 5; assertThat((double) list.get(1)).isEqualTo((double) 1);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 32.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/FloatsTest.java
} public void testAsList_toArray_roundTrip() { float[] array = {(float) 0, (float) 1, (float) 2}; List<Float> list = Floats.asList(array); float[] newArray = Floats.toArray(list); // Make sure it returned a copy list.set(0, (float) 4); assertThat(newArray).isEqualTo(new float[] {(float) 0, (float) 1, (float) 2}); newArray[1] = (float) 5; assertThat((float) list.get(1)).isEqualTo((float) 1); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 30.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/LongsTest.java
} public void testAsList_toArray_roundTrip() { long[] array = {(long) 0, (long) 1, (long) 2}; List<Long> list = Longs.asList(array); long[] newArray = Longs.toArray(list); // Make sure it returned a copy list.set(0, (long) 4); assertThat(newArray).isEqualTo(new long[] {(long) 0, (long) 1, (long) 2}); newArray[1] = (long) 5; assertThat((long) list.get(1)).isEqualTo((long) 1); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 29.8K bytes - Viewed (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 {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 41.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
assertEquals(localCacheOne.removalListener, localCacheTwo.removalListener); assertEquals(localCacheOne.ticker, localCacheTwo.ticker); // serialize the reconstituted version to be sure we haven't lost the ability to reserialize LocalLoadingCache<Object, Object> three = SerializableTester.reserialize(two); LocalCache<Object, Object> localCacheThree = three.localCache;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 110.6K bytes - Viewed (0)