- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for TestLimit (0.21 seconds)
-
guava-tests/test/com/google/common/io/ByteStreamsTest.java
assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 2)); assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 100)); } public void testLimit() throws Exception { byte[] big = newPreFilledByteArray(5); InputStream bin = new ByteArrayInputStream(big); InputStream lin = ByteStreams.limit(bin, 2); // also test available lin.mark(2);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 22K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ByteStreamsTest.java
assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 2)); assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 100)); } public void testLimit() throws Exception { byte[] big = newPreFilledByteArray(5); InputStream bin = new ByteArrayInputStream(big); InputStream lin = ByteStreams.limit(bin, 2); // also test available lin.mark(2);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 22K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/FluentIterableTest.java
} public void testSkip_illegalArgument() { assertThrows( IllegalArgumentException.class, () -> FluentIterable.from(asList("a", "b", "c")).skip(-1)); } public void testLimit() { Iterable<String> iterable = Lists.newArrayList("foo", "bar", "baz"); FluentIterable<String> limited = FluentIterable.from(iterable).limit(2);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 31.2K bytes - Click Count (0) -
clause/limit_test.go
package clause_test import ( "fmt" "testing" "gorm.io/gorm/clause" ) func TestLimit(t *testing.T) { limit0 := 0 limit10 := 10 limit50 := 50 limitNeg10 := -10 results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{clause.Select{}, clause.From{}, clause.Limit{ Limit: &limit10, Offset: 20, }},
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Feb 06 02:54:40 GMT 2024 - 2.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IterablesTest.java
assertThat(Iterables.toString(list)).isEqualTo("[]"); list = newArrayList("yam", "bam", "jam", "ham"); assertThat(Iterables.toString(list)).isEqualTo("[yam, bam, jam, ham]"); } public void testLimit() { Iterable<String> iterable = newArrayList("foo", "bar", "baz"); Iterable<String> limited = Iterables.limit(iterable, 2); List<String> expected = ImmutableList.of("foo", "bar");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 47.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
assertThat(Iterators.toString(iterator)).isEqualTo("[]"); } @SuppressWarnings("JUnitIncompatibleType") // Fails with j2kt. public void testLimit() { List<String> list = new ArrayList<>(); assertThrows(IllegalArgumentException.class, () -> Iterators.limit(list.iterator(), -1)); assertFalse(Iterators.limit(list.iterator(), 0).hasNext());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 57.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
assertThat(Iterators.toString(iterator)).isEqualTo("[]"); } @SuppressWarnings("JUnitIncompatibleType") // Fails with j2kt. public void testLimit() { List<String> list = new ArrayList<>(); assertThrows(IllegalArgumentException.class, () -> Iterators.limit(list.iterator(), -1)); assertFalse(Iterators.limit(list.iterator(), 0).hasNext());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 57.3K bytes - Click Count (0) -
tests/query_test.go
if !regexp.MustCompile(userQuery + "ORDER BY FIELD\\(id,1,2,3\\)").MatchString(explainedSQL) { t.Fatalf("Build Order condition, but got %v", explainedSQL) } } func TestLimit(t *testing.T) { users := []User{ {Name: "LimitUser1", Age: 1}, {Name: "LimitUser2", Age: 10}, {Name: "LimitUser3", Age: 20}, {Name: "LimitUser4", Age: 10}, {Name: "LimitUser5", Age: 20},
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Jul 22 06:21:04 GMT 2025 - 51K bytes - Click Count (0)