- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 29 for rstrip (0.12 sec)
-
guava-tests/test/com/google/common/io/ResourcesTest.java
import junit.framework.TestSuite; /** * Unit test for {@link Resources}. * * @author Chris Nokleberg */ public class ResourcesTest extends IoTestCase { @AndroidIncompatible // wouldn't run anyway, but strip the source entirely because of b/230620681 public static TestSuite suite() { TestSuite suite = new TestSuite(); suite.addTest( ByteSourceTester.tests(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java
* environment that forces Futures.getChecked to its fallback WeakSetValidator. One awful way of * doing so would be to derive a separate test library by using remove_from_jar to strip out * ClassValueValidator. * * Fortunately, we get pretty good coverage "by accident": We run all these tests against the * *backport*, where ClassValueValidator is not present. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.3K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/OpenJdk6QueueTests.java
import java.util.Collection; import java.util.List; import java.util.Queue; import junit.framework.Test; /** * Tests the {@link Queue} implementations of {@link java.util}, suppressing tests that trip known * OpenJDK 6 bugs. * * @author Kevin Bourrillion */ public class OpenJdk6QueueTests extends TestsForQueuesInJavaUtil { public static Test suite() { return new OpenJdk6QueueTests().allTests(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 1.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
ByteSource source = out.asByteSource(); int chunk1 = min(dataSize, fileThreshold); int chunk2 = dataSize - chunk1; // Write just enough to not trip the threshold if (chunk1 > 0) { write(out, data, 0, chunk1, singleByte); assertTrue(ByteSource.wrap(data).slice(0, chunk1).contentEquals(source)); } File file = out.getFile(); assertNull(file);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 5.5K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Converter.java
* converter.reverse().convert(converter.convert(a)).equals(a)} is always true). However, it is very * common (perhaps <i>more</i> common) for round-trip conversion to be <i>lossy</i>. Consider an * example round-trip using {@link com.google.common.primitives.Doubles#stringConverter}: * * <ol> * <li>{@code stringConverter().convert("1.00")} returns the {@code Double} value {@code 1.0}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 23K bytes - Viewed (0) -
guava/src/com/google/common/net/InternetDomainName.java
InternetDomainName(String name) { // Normalize: // * ASCII characters to lowercase // * All dot-like characters to '.' // * Strip trailing '.' name = Ascii.toLowerCase(DOTS_MATCHER.replaceFrom(name, '.')); if (name.endsWith(".")) { name = name.substring(0, name.length() - 1); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Feb 05 20:47:23 UTC 2024 - 28K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java
* PackageSanityTests. (The test would run on the JVM, too, if not for the suppression below, and * that would be a problem because it violates small-test rules. Note that we strip the * suppression externally, but it's OK because we don't enforce test-size rules there.) * * We'd just use PackageSanityTests directly, saving us from needing this separate type, but we're
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 11 21:37:55 UTC 2019 - 5.3K bytes - Viewed (0) -
guava/src/com/google/common/math/BigIntegerMath.java
// Start from the pre-computed maximum long factorial. int startingNumber = LongMath.factorials.length; long product = LongMath.factorials[startingNumber - 1]; // Strip off 2s from this value. int shift = Long.numberOfTrailingZeros(product); product >>= shift; // Use floor(log2(num)) + 1 to prevent overflow of multiplication.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 17:21:56 UTC 2024 - 18.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/PairedStatsTest.java
} public void testToByteArrayAndFromByteArrayRoundTrip() { for (PairedStats pairedStats : ALL_PAIRED_STATS) { byte[] pairedStatsByteArray = pairedStats.toByteArray(); // Round trip to byte array and back assertThat(PairedStats.fromByteArray(pairedStatsByteArray)).isEqualTo(pairedStats); } } public void testFromByteArray_withNullInputThrowsNullPointerException() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 03 21:17:33 UTC 2024 - 14K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Doubles.java
@GwtIncompatible // regular expressions private static java.util.regex.Pattern fpPattern() { /* * We use # instead of * for possessive quantifiers. This lets us strip them out when building * the regex for RE2 (which doesn't support them) but leave them in when building it for * java.util.regex (where we want them in order to avoid catastrophic backtracking). */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 15:52:18 UTC 2024 - 27.9K bytes - Viewed (0)