- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for oneResult (0.36 sec)
-
test/fixedbugs/issue27595.go
var b, c, d = twoResults() // ERROR "assignment mismatch: 3 variables but twoResults returns 2 values|cannot initialize" var e, f = oneResult() // ERROR "assignment mismatch: 2 variables but oneResult returns 1 value|cannot initialize" func twoResults() (int, int) { return 1, 2 } func oneResult() int { return 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 23 19:41:41 UTC 2021 - 670 bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/ivy/IvyDescriptor.groovy
IvyDescriptorArtifact expectArtifact(String name, String ext, String classifier = null) { return oneResult(artifacts.findAll({ it.name == name && it.ext == ext && it.classifier == classifier }), [name, ext, classifier]) } IvyDescriptorArtifact expectArtifact(String name) { return oneResult(artifacts.findAll({ it.name == name && it.ext != 'module' }), [name]) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h
template <typename ConcreteType> class IsIdempotent : public TraitBase<ConcreteType, IsIdempotent> { public: static LogicalResult verifyTrait(Operation* op) { static_assert(ConcreteType::template hasTrait<OneResult>(), "expected operation to produce one result"); static_assert(ConcreteType::template hasTrait<OneOperand>() || ConcreteType::template hasTrait<NOperands<2>::Impl>(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h
typename VerifierT, typename RootOpT = DequantizeOpT, typename = std::enable_if_t< QuantizeOpT::template hasTrait<OpTrait::OneOperand>() && DequantizeOpT::template hasTrait<OpTrait::OneResult>()>> class StableHloQuantizationPattern : public OpRewritePattern<RootOpT> { public: explicit StableHloQuantizationPattern(MLIRContext* context) // Set the benefit to a large number so that it is always preferred.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0) -
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultPhasedActionResultListenerTest.groovy
def listener = new DefaultPhasedActionResultListener(projectsLoadedHandler, buildFinishedHandler) def "right handler is called"() { when: listener.onResult(new ProjectsLoadedResult<String>('result1')) listener.onResult(new BuildFinishedResult<String>('result2')) then: 1 * projectsLoadedHandler.onComplete('result1') 1 * buildFinishedHandler.onComplete('result2') }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/tooling/internal/provider/FailsafePhasedActionResultListenerTest.groovy
def "delegate to listener"() { when: failsafeListener.onResult(event) then: 1 * delegateListener.onResult(event) } def "failure is caught"() { def failure = new RuntimeException() given: delegateListener.onResult(_) >> { throw failure } when: failsafeListener.onResult(event) then: noExceptionThrown() when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/tooling/internal/provider/PhasedActionEventConsumerTest.groovy
then: 1 * phasedActionResultListener.onResult({ it.getPhase() == PhasedActionResult.Phase.PROJECTS_LOADED && it.getResult() == result1 }) 1 * phasedActionResultListener.onResult({ it.getPhase() == PhasedActionResult.Phase.BUILD_FINISHED && it.getResult() == result2 })
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 2.7K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/tooling/internal/provider/FailsafePhasedActionResultListener.java
public FailsafePhasedActionResultListener(PhasedActionResultListener delegate) { this.delegate = delegate; } @Override public void onResult(PhasedActionResult<?> event) { try { delegate.onResult(event); } catch (Throwable t) { listenerFailures.add(t); } } public void rethrowErrors() { if (!listenerFailures.isEmpty()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 13 23:23:59 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/protocol/PhasedActionResultListener.java
* * @since 4.8 */ public interface PhasedActionResultListener extends InternalProtocolInterface { /** * Method called when result is available. */ void onResult(PhasedActionResult<?> result);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/connection/PhasedActionAwareConsumerConnectionTest.groovy
def actionResult1 = protocolAction.getProjectsLoadedAction().execute(buildController) def actionResult3 = protocolAction.getBuildFinishedAction().execute(buildController) listener.onResult(new PhasedActionResult<Object>() { @Override Object getResult() { return actionResult1 } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 7K bytes - Viewed (0)