# `BB.Test.MockSolver`
[🔗](https://github.com/beam-bots/bb/blob/main/test/support/mock_solver.ex#L5)

Mock IK solver for testing BB.Motion without real IK computations.

Configure behaviour via process dictionary:
- `:mock_solver_result` - the result to return from solve/5

## Examples

    BB.Test.MockSolver.set_result({:ok, %{joint1: 0.5}, %{iterations: 5, residual: 0.001, reached: true}})
    BB.Test.MockSolver.set_result({:error, %BB.Error.Kinematics.Unreachable{target_link: :tip, residual: 0.5}})

# `last_call`

Get the last call arguments (for assertions).

# `set_result`

Set the result that solve/5 will return.

# `unreachable_error`

Create an unreachable error for testing.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
