Do do mock logic
(ctx Context)
| 42 | |
| 43 | // Do do mock logic |
| 44 | func (m *StandardMock) Do(ctx Context) { |
| 45 | handler, exists := m.routeMap[ctx.RouterNode().Node().fullPath] |
| 46 | if exists { |
| 47 | handler(ctx) |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | // Register register MockHandle on route |
| 52 | func (m *StandardMock) Register(route string, handler MockHandle) { |
nothing calls this directly
no test coverage detected