- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 104 for matcher (0.29 seconds)
-
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt
inline fun <reified T> inAnyOrder(items: List<T>): Matcher<Iterable<T>> = inAnyOrder(items.toTypedArray()) /** * Matcher checking each item is present exactly once in a given iterable, but an any position, * and that there are no unexpected items. */ private fun <T> inAnyOrder(items: Array<out T>): Matcher<Iterable<T>> = Matchers.containsInAnyOrder(*items)
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Dec 30 10:14:25 GMT 2025 - 18K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleJavadocsPlugin.java
.findFirst() .orElseThrow(() -> new IOException("Can't find package definition in file " + file)); Matcher matcher = pattern.matcher(packageLine); if (matcher.find()) { return matcher.group(1); } else { throw new IOException("Can't extract package name from file " + file); } }
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Oct 02 14:18:24 GMT 2025 - 10.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
Pattern pattern = Pattern.compile("Multiple entries with same key: four=(.*) and four=(.*)"); assertThat(expected).hasMessageThat().matches(pattern); Matcher matcher = pattern.matcher(expected.getMessage()); assertThat(matcher.matches()).isTrue(); assertThat(matcher.group(1)).isNotEqualTo(matcher.group(2)); } public void testOf() { assertMapEquals(ImmutableMap.of("one", 1), "one", 1);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 36.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
CallEnd::class, ) } private fun assertBytesReadWritten( listener: EventRecorder, requestHeaderLength: Matcher<Long?>?, requestBodyBytes: Matcher<Long?>?, responseHeaderLength: Matcher<Long?>?, responseBodyBytes: Matcher<Long?>?, ) { if (requestHeaderLength != null) { val responseHeadersEnd = listener.removeUpToEvent<RequestHeadersEnd>()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 70.5K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperties.java
} private static boolean isOldMethod(JApiMethod jApiMethod, Map<AccessorKey, ReplacedAccessor> upgradedMethods, Pattern pattern) { String name = jApiMethod.getName(); if (!pattern.matcher(name).matches()) { return false; } return upgradedMethods.containsKey(AccessorKey.ofOldMethod(jApiMethod)); }Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 24 14:15:15 GMT 2025 - 9.3K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractSuperClassChangesRule.groovy
if (c.name.startsWith("java.")) { return false } else if (c.name.contains('.internal.')) { return true } else { return !publicApiPatterns.any { it.matcher(c.name).find() } } }
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 24 14:15:15 GMT 2025 - 2.2K bytes - Click Count (0) -
guava/src/com/google/common/net/MediaType.java
checkState(position != startPosition); return token; } char consumeCharacter(CharMatcher matcher) { checkState(hasMore()); char c = previewChar(); checkState(matcher.matches(c)); position++; return c; } @CanIgnoreReturnValue char consumeCharacter(char c) { checkState(hasMore());
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 02 01:46:40 GMT 2025 - 48K bytes - Click Count (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/SourceRootTest.java
} @Override public Optional<String> module() { return Optional.ofNullable(moduleName); } @Override public PathMatcher matcher(Collection<String> defaultIncludes, boolean useDefaultExcludes) { return null; // Not used for this test. } @Test void testDirectory() {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Oct 26 17:22:14 GMT 2025 - 2.9K bytes - Click Count (0) -
android/guava/src/com/google/common/net/MediaType.java
checkState(position != startPosition); return token; } char consumeCharacter(CharMatcher matcher) { checkState(hasMore()); char c = previewChar(); checkState(matcher.matches(c)); position++; return c; } @CanIgnoreReturnValue char consumeCharacter(char c) { checkState(hasMore());
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 02 01:46:40 GMT 2025 - 48K bytes - Click Count (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/tasks/GenerateAutoTestedSamplesTestTask.kt
require(!fileContent.contains("'''")) { "The class with class='autoTested' can't contains triple quotes: $relativePath" } if (!sampleStart.matcher(fileContent).find()) { return } val className = relativePath.substringAfterLast("/").replace(".groovy", "AutoTestedSamplesTest").replace(".java", "AutoTestedSamplesTest")
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Dec 19 06:44:41 GMT 2025 - 3.9K bytes - Click Count (0)