Header calls HeaderFunc if set and panics otherwise.
()
| 93 | |
| 94 | // Header calls HeaderFunc if set and panics otherwise. |
| 95 | func (m MockClientStream) Header() (metadata.MD, error) { |
| 96 | if m.HeaderFunc == nil { |
| 97 | panic("Header called, but not set") |
| 98 | } |
| 99 | return m.HeaderFunc() |
| 100 | } |
| 101 | |
| 102 | // Trailer calls TrailerFunc if set and panics otherwise. |
| 103 | func (m MockClientStream) Trailer() metadata.MD { |
no outgoing calls