SetStatus fixes the Result returned by Status for domain.
(domain string, r Result)
| 74 | |
| 75 | // SetStatus fixes the Result returned by Status for domain. |
| 76 | func (f *FakeProvider) SetStatus(domain string, r Result) { |
| 77 | f.mu.Lock() |
| 78 | defer f.mu.Unlock() |
| 79 | f.statusByDomain[domain] = r |
| 80 | } |
| 81 | |
| 82 | // SetStatusSequence queues results consumed one-per-Status-call for domain; |
| 83 | // the last result repeats once the sequence drains. Lets a test drive |
no outgoing calls