(_ context.Context, id string)
| 1054 | } |
| 1055 | |
| 1056 | func (s *inMemoryManagerStore) GetTaskRun(_ context.Context, id string) (Run, error) { |
| 1057 | run, ok := s.runs[strings.TrimSpace(id)] |
| 1058 | if !ok { |
| 1059 | return Run{}, ErrTaskRunNotFound |
| 1060 | } |
| 1061 | return cloneTaskRun(run), nil |
| 1062 | } |
| 1063 | |
| 1064 | func (s *inMemoryManagerStore) ListTaskRuns(_ context.Context, query RunQuery) ([]Run, error) { |
| 1065 | if err := query.Validate("task_run_query"); err != nil { |
no test coverage detected