()
| 97 | } |
| 98 | |
| 99 | func (m *MockDelegate) getMessages() [][]byte { |
| 100 | m.mu.Lock() |
| 101 | defer m.mu.Unlock() |
| 102 | |
| 103 | out := make([][]byte, len(m.msgs)) |
| 104 | for i, msg := range m.msgs { |
| 105 | out[i] = make([]byte, len(msg)) |
| 106 | copy(out[i], msg) |
| 107 | } |
| 108 | return out |
| 109 | } |
| 110 | |
| 111 | func (m *MockDelegate) NodeMeta(limit int) []byte { |
| 112 | m.mu.Lock() |
no outgoing calls
no test coverage detected