Let $D$ be a convex domain, $\gamma \subset D$ a rectifiable closed path and $f(z): D \rightarrow \mathbb{C}$ continuous. Does $$\int_\gamma f(z)dz = 0$$ ?
I think there must be a counterexample (thinking of Cauchy), but my go-to non-holomorphic continuous function the modulus $||$ does in fact satisfy this condition for circles.
Is there a nice counterexample or some other way to argue this isn't true? Or is it in fact true?
If $\gamma$ is a Jordan curve then $$ \int_\gamma \overline z dz = 2iA $$ where $A$ is the area enclosed by the curve, see for example this answer.
If $f: D \to \Bbb C$ is continous, and $\int_\gamma f(z) dz = 0$ for every closed piecewise $C^1$ curve $\gamma$ in $D$ then $f$ is holomorphic in $D$ – that is Morera's theorem.
Therefore, conversely, if $f$ is not holomorphic then there must be closed path $\gamma$ in $D$ such that $\int_\gamma f(z) dz \ne 0$.