stubModelStore is a ModelStore backed by in-memory data, used to verify which of the gateway / catalog code paths populated the picker.
| 21 | // stubModelStore is a ModelStore backed by in-memory data, used to verify |
| 22 | // which of the gateway / catalog code paths populated the picker. |
| 23 | type stubModelStore struct { |
| 24 | db *modelsdev.Database |
| 25 | models map[string]*modelsdev.Model |
| 26 | } |
| 27 | |
| 28 | func (s stubModelStore) GetModel(_ context.Context, id modelsdev.ID) (*modelsdev.Model, error) { |
| 29 | if m, ok := s.models[id.String()]; ok { |
nothing calls this directly
no outgoing calls
no test coverage detected