| 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | "reasonix/internal/agent" |
| 5 | "reasonix/internal/control" |
| 6 | ) |
| 7 | |
| 8 | // stubSessionAPI supplies port defaults for the test controllers that only |
| 9 | // override the few methods their scenario exercises. Embedding the bare |
| 10 | // control.SessionAPI interface leaves it nil, so every un-overridden call |
| 11 | // panics; production readers call the port directly and must not carry a |
| 12 | // recover to absorb that. |
| 13 | type stubSessionAPI struct { |
| 14 | control.SessionAPI |
| 15 | } |
| 16 | |
| 17 | func (stubSessionAPI) SessionHead() (agent.HeadRef, bool) { return agent.HeadRef{}, false } |
| 18 | func (stubSessionAPI) QualityFloor() string { return control.QualityFloorStandard } |
| 19 | func (stubSessionAPI) SetQualityFloor(string) error { return nil } |
| 20 |