- Sort Score
- Result 10 results
- Languages All
Results 871 - 880 of 1,620 for testIs (0.07 sec)
-
guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java
import org.checkerframework.checker.nullness.qual.Nullable; /** * A TimeLimiter implementation which actually does not attempt to limit time at all. This may be * desirable to use in some unit tests. More importantly, attempting to debug a call which is * time-limited would be extremely annoying, so this gives you a time-limiter you can easily swap in * for your real time-limiter while you're debugging. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Dec 14 20:35:03 UTC 2023 - 3.5K bytes - Viewed (0) -
tests/named_argument_test.go
package tests_test import ( "database/sql" "errors" "testing" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) func TestNamedArg(t *testing.T) { type NamedUser struct { gorm.Model Name1 string Name2 string Name3 string } DB.Migrator().DropTable(&NamedUser{}) DB.AutoMigrate(&NamedUser{}) namedUser := NamedUser{Name1: "jinzhu1", Name2: "jinzhu2", Name3: "jinzhu3"} DB.Create(&namedUser)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Dec 21 11:50:00 UTC 2021 - 2.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SortedListsTest.java
import com.google.common.collect.SortedLists.KeyPresentBehavior; import com.google.common.testing.NullPointerTester; import java.util.List; import junit.framework.TestCase; /** * Tests for SortedLists. * * @author Louis Wasserman */ @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault public class SortedListsTest extends TestCase {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 17:21:56 UTC 2024 - 4K bytes - Viewed (0) -
guava/src/com/google/common/math/LongMath.java
* * <p>This differs from {@code Long.bitCount(x) == 1}, because {@code * Long.bitCount(Long.MIN_VALUE) == 1}, but {@link Long#MIN_VALUE} is not a power of two. */ // Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, || @SuppressWarnings("ShortCircuitBoolean") public static boolean isPowerOfTwo(long x) { return x > 0 & (x & (x - 1)) == 0; } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 09 16:39:37 UTC 2024 - 45.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/PackageSanityTests.java
*/ package com.google.common.hash; import com.google.common.hash.BloomFilterStrategies.LockFreeBitArray; import com.google.common.testing.AbstractPackageSanityTests; /** * Basic sanity tests for the entire package. * * @author Ben Yu */ public class PackageSanityTests extends AbstractPackageSanityTests { public PackageSanityTests() { setDefault(LockFreeBitArray.class, new LockFreeBitArray(1));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jun 26 15:56:47 UTC 2017 - 1.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/TestExceptions.java
* limitations under the License. */ package com.google.common.base; import com.google.common.annotations.GwtCompatible; /** Exception classes for use in tests. */ @GwtCompatible final class TestExceptions { static class SomeError extends Error {} static class SomeCheckedException extends Exception {} static class SomeOtherCheckedException extends Exception {}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 1.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TestExceptions.java
* limitations under the License. */ package com.google.common.util.concurrent; import com.google.common.annotations.GwtCompatible; /** Exception classes for use in tests. */ @GwtCompatible final class TestExceptions { static class SomeError extends Error {} static class SomeCheckedException extends Exception {} static class SomeOtherCheckedException extends Exception {}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 1.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java
import java.util.Collections; import java.util.List; import java.util.NoSuchElementException; import org.junit.Ignore; /** * Tester for navigation of SortedMultisets. * * @author Louis Wasserman */ @GwtCompatible @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. @SuppressWarnings("JUnit4ClassUsedInJUnit3") public class MultisetNavigationTester<E> extends AbstractMultisetTester<E> {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 26.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/SessionReuseTest.kt
var client = clientTestRule.newClient() private lateinit var server: MockWebServer @BeforeEach fun setUp(server: MockWebServer) { this.server = server // Default after JDK 14, but we are avoiding tests that assume special setup. // System.setProperty("jdk.tls.client.enableSessionTicketExtension", "true") // System.setProperty("jdk.tls.server.enableSessionTicketExtension", "true")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java
* variety of sequences of the {@link Iterator#next}, {@link Iterator#hasNext} and {@link * Iterator#remove} operations. This utility takes the brute-force approach of trying <i>all</i> * possible sequences of these operations, up to a given number of steps. So, if the caller * specifies to use <i>n</i> steps, a total of <i>3^n</i> tests are actually performed. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 4.3K bytes - Viewed (0)