(names ...string)
| 22 | } |
| 23 | |
| 24 | func (h *cmdRecorder) record(names ...string) { |
| 25 | h.mu.Lock() |
| 26 | defer h.mu.Unlock() |
| 27 | h.sent = append(h.sent, names...) |
| 28 | } |
| 29 | |
| 30 | func (h *cmdRecorder) has(name string) bool { |
| 31 | return h.count(name) > 0 |
no outgoing calls
no test coverage detected