| 2651 | } |
| 2652 | |
| 2653 | type mockClusterService struct { |
| 2654 | apiAddr string |
| 2655 | executeFn func(er *command.ExecuteRequest, addr string, t time.Duration) ([]*command.ExecuteQueryResponse, uint64, error) |
| 2656 | queryFn func(qr *command.QueryRequest, addr string, t time.Duration) ([]*command.QueryRows, uint64, error) |
| 2657 | requestFn func(eqr *command.ExecuteQueryRequest, nodeAddr string, timeout time.Duration) ([]*command.ExecuteQueryResponse, uint64, uint64, error) |
| 2658 | backupFn func(br *command.BackupRequest, addr string, t time.Duration, w io.Writer) error |
| 2659 | loadFn func(lr *command.LoadRequest, addr string, t time.Duration) error |
| 2660 | removeNodeFn func(rn *command.RemoveNodeRequest, nodeAddr string, t time.Duration) error |
| 2661 | stepdownFn func(sr *command.StepdownRequest, nodeAddr string, t time.Duration) error |
| 2662 | } |
| 2663 | |
| 2664 | func (m *mockClusterService) GetNodeMeta(ctx context.Context, a string, r int, t time.Duration) (*cluster.NodeMeta, error) { |
| 2665 | return &cluster.NodeMeta{ |
nothing calls this directly
no outgoing calls
no test coverage detected