- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 161 for isNone (0.15 sec)
-
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/local/CompositeLocallyAvailableResourceFinderTest.groovy
and: 0 * c1._(*_) 0 * c2._(*_) 0 * c3._(*_) when: def isNone = candidates.isNone() then: 1 * c1.isNone() >> true and: 1 * c2.isNone() >> false 0 * c3.isNone() when: def match = candidates.findByHashValue(hash) then: 1 * c1.findByHashValue(hash) >> null
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/local/LazyLocallyAvailableResourceCandidatesTest.groovy
def candidates = new LazyLocallyAvailableResourceCandidates(factory, TestUtil.checksumService) then: 0 * factory.create() when: def isNone = candidates.isNone() then: !isNone 1 * factory.create() >> [file("abc"), file("def")] when: def candidate = candidates.findByHashValue(Hashing.sha1().hashString("def")) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.7K bytes - Viewed (0) -
platforms/software/resources/src/main/java/org/gradle/internal/resource/local/CompositeLocallyAvailableResourceFinder.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 2.5K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/waypoints.go
) *Waypoint { // namespace to be used when the annotation doesn't include a namespace fallbackNamespace := o.Namespace // try fetching the waypoint defined on the object itself wp, isNone := getUseWaypoint(o, fallbackNamespace) if isNone { // we've got a local override here opting out of waypoint return nil } if wp != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 18:02:28 UTC 2024 - 11.1K bytes - Viewed (0) -
platforms/software/resources/src/main/java/org/gradle/internal/resource/local/LocallyAvailableResourceCandidates.java
import org.gradle.internal.hash.HashCode; /** * A set of locally available resources that were “selected” through some means. */ public interface LocallyAvailableResourceCandidates { boolean isNone(); LocallyAvailableResource findByHashValue(HashCode hashValue);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 945 bytes - Viewed (0) -
platforms/software/resources/src/main/java/org/gradle/internal/resource/local/LazyLocallyAvailableResourceCandidates.java
} protected List<File> getFiles() { if (files == null) { files = filesFactory.create(); } return files; } @Override public boolean isNone() { return getFiles().isEmpty(); } @Override public LocallyAvailableResource findByHashValue(HashCode targetHash) { HashCode thisHash; for (File file : getFiles()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/resource/transfer/DefaultCacheAwareExternalResourceAccessor.java
// If we have no caching options, just get the thing directly if (cached == null && (additionalCandidates == null || additionalCandidates.isNone())) { return copyToCache(location, fileStore, delegate.withProgressLogging().resource(location)); } // We might be able to use a cached/locally available version
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 11.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/transfer/DefaultCacheAwareExternalResourceAccessorTest.groovy
def result = cache.getResource(location, null, fileStore, localCandidates) then: result == null and: 1 * index.lookup("thing") >> null 1 * localCandidates.isNone() >> true 1 * repository.withProgressLogging() >> progressLoggingRepo 1 * progressLoggingRepo.resource(location) >> resource 1 * resource.withContentIfPresent(_) >> null 0 * _._ }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 02 17:19:47 UTC 2024 - 19.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/resource/local/ivy/LocallyAvailableResourceFinderFactory.java
logged = true; } return new LocallyAvailableResourceCandidates() { @Override public boolean isNone() { return true; } @Override public LocallyAvailableResource findByHashValue(HashCode hashValue) { return null;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 8.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java
assertFalse(task.isDone()); assertFalse(task.isCancelled()); // Start the task to put it in the RUNNING state. Have to use a separate // thread because the task will block on the task latch after unblocking // the run latch. exec.execute(task); runLatch.await(); assertEquals(1, listenerLatch.getCount()); assertFalse(task.isDone()); assertFalse(task.isCancelled());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.7K bytes - Viewed (0)