A function $f:\mathbb{R}^n\to\mathbb{R}$ is called coercive if $$ \lim_{\|x\|\to\infty}f(x)=\infty. $$ To show that $f$ is coercive, we need to prove that for every sequence $\{x_n\}$ with $\|x_n\|\to\infty$, it holds that $f(x_n)\to\infty$.
My question: Is it sufficient to check that $f$ is coercive along every line? That is, does the condition $$ \lim_{t\to\infty}f(x+td)=\infty,\quad\forall\,x\in\mathbb{R}^n,\quad\forall\,d\in\mathbb{R}^n\backslash\{0\} $$ imply that $f$ is coercive? If not, what additional assumptions (e.g., convexity and/or $C^1$) can we impose on $f$ to make this true?