This paper presents the Panta technique to address the challenges of automating unit test generation for complex methods in real-world projects. Panta overcomes the limited control flow structure inference capability of LLM by mimicking the iterative process of developers analyzing code and constructing test cases. By integrating static control flow analysis and dynamic code coverage analysis, LLM systematically guides the generation of better test cases by identifying undiscovered execution paths. An iterative feedback-based mechanism continuously improves test generation based on insights from static and dynamic path coverage, ensuring more comprehensive and effective testing. Experimental evaluations on classes with high cyclomatic complexity from open source projects show that Panta achieves 26% better line coverage and 23% better branch coverage than state-of-the-art techniques.