Let $f:\mathbb{R}^n \mapsto \mathbb{R}$ be a differentiable function. Suppose $x^*$ is a local minimizer of $f$ along every line that passes through $x^*$. This means that the function $$g(\alpha) = f(x^* + \alpha d)$$ is being minimized for $\alpha = 0$ for any direction $d \in \mathbb{R}^n$. It is easy to show that this implies $\nabla f(x^*) = 0$.
The question is:
Is $x^*$ a local minimizer of $f$?
The answer is, it can be a local minimizer, maximizer, or a saddle point. I really don't get the reason. We are given that, for sufficiently small $\alpha>0$, $f(x^*) \leq f(x^* + \alpha d), \forall d \in \mathbb{R}^n$. Doesn't this also imply that $x^*$ is a local minimizer?