- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for consumeValue (0.28 sec)
-
src/mime/mediatype_test.go
{`"\" rest`, "", `"\" rest`}, {`"C:\dev\go\robots.txt"`, `C:\dev\go\robots.txt`, ""}, {`"C:\新建文件夹\中文第二次测试.mp4"`, `C:\新建文件夹\中文第二次测试.mp4`, ""}, } for _, test := range tests { value, rest := consumeValue(test[0]) expectedValue := test[1] expectedRest := test[2] if value != expectedValue { t.Errorf("expected to consume value [%s], not [%s] from [%s]", expectedValue, value, test[0])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 26 17:58:37 UTC 2022 - 18.1K bytes - Viewed (0) -
platforms/jvm/jvm-services/src/main/java/org/gradle/api/internal/artifacts/JavaEcosystemSupport.java
@Override public void execute(MultipleCandidatesDetails<TargetJvmEnvironment> details) { TargetJvmEnvironment consumerValue = details.getConsumerValue(); if (consumerValue != null && details.getCandidateValues().contains(consumerValue)) { details.closestMatch(consumerValue); // exact match } else {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 25 19:13:00 UTC 2024 - 18.1K bytes - Viewed (0) -
platforms/jvm/jvm-services/src/main/java/org/gradle/api/internal/artifacts/JavaEcosystemAttributesDescriber.java
} @Override @Nullable public String describeMissingAttribute(Attribute<?> attribute, Object consumerValue) { StringBuilder sb = new StringBuilder(); if (haveSameName(Usage.USAGE_ATTRIBUTE, attribute)) { sb.append("its usage (required "); describeUsage(consumerValue, sb); sb.append(")");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 25 19:13:00 UTC 2024 - 14.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/component/resolution/failure/ResolutionCandidateAssessor.java
} else { incompatible.add(new AssessedAttribute<>(attribute, Cast.uncheckedCast(consumerValue.get()), Cast.uncheckedCast(producerValue.get()))); } } else if (consumerValue.isPresent()) { onlyOnConsumer.add(new AssessedAttribute<>(attribute, Cast.uncheckedCast(consumerValue.get()), null));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 22 19:04:04 UTC 2024 - 11.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultAttributesSchemaTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 16.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/DefaultAttributeMatcherTest.groovy
@Override void execute(MultipleCandidatesDetails details) { if (details.consumerValue == null) { details.closestMatch("compatible") } else if (details.consumerValue == "requested") { details.closestMatch("best") } } } schema.attribute(usage)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 24.8K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/StronglyTypedConfigurationAttributesResolveIntegrationTest.groovy
void execute(MultipleCandidatesDetails<Flavor> details) { if (details.consumerValue == null) { details.closestMatch(details.candidateValues.find { it.name == 'ONE' }) } else if (details.consumerValue.name == 'free') { details.closestMatch(details.candidateValues.find { it.name == 'TWO' }) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 02 20:50:18 UTC 2024 - 48.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/LocalComponentDependencyMetadataTest.groovy
static class EqualsValuesCompatibleRule implements AttributeCompatibilityRule<String> { @Override void execute(CompatibilityCheckDetails<String> details) { def requested = details.consumerValue def candidate = details.producerValue if (requested == candidate) { // simulate exact match details.compatible() } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:10:53 UTC 2024 - 25.3K bytes - Viewed (0) -
subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildConfigurationAttributesResolveIntegrationTest.groovy
class CompatRule implements AttributeCompatibilityRule<Thing> { void execute(CompatibilityCheckDetails<Thing> details) { if (details.consumerValue.name == 'paid' && details.producerValue.name == 'blue') { details.compatible() } else if (details.producerValue.name == 'red') { details.compatible()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 08 14:30:36 UTC 2024 - 33.6K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ResolvedArtifactsApiIntegrationTest.groovy
void execute(CompatibilityCheckDetails<String> details) { if (details.consumerValue == 'preview' && details.producerValue == 'one') { details.compatible() } } } class TwoRule implements AttributeCompatibilityRule<String> { void execute(CompatibilityCheckDetails<String> details) { if (details.consumerValue == 'preview' && details.producerValue == 'two') { details.compatible()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jan 29 22:29:19 UTC 2024 - 32.7K bytes - Viewed (0)