MCPcopy Create free account
hub / github.com/cowprotocol/services / solution

Method solution

crates/driver/src/tests/setup/mod.rs:848–851  ·  view source on GitHub ↗

Add a solution to be returned by the mock solver.

(mut self, solution: Solution)

Source from the content-addressed store, hash-verified

846
847 /// Add a solution to be returned by the mock solver.
848 pub fn solution(mut self, solution: Solution) -> Self {
849 self.solutions.push(solution);
850 self
851 }
852
853 pub fn solvers(mut self, solvers: Vec<Solver>) -> Self {
854 self.solvers = solvers;

Callers 15

idMethod · 0.45
scoreMethod · 0.45
jit_ordersMethod · 0.45
ordersMethod · 0.45
possibleFunction · 0.45
possible_common_tokenFunction · 0.45
impossibleFunction · 0.45
possible_but_forbiddenFunction · 0.45
test_unfundedFunction · 0.45
test_just_enough_fundedFunction · 0.45
validFunction · 0.45
all_proposedFunction · 0.45

Calls 2

solutionsMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected