Code-based testing corresponds to the testing that is carried out on code development, code inspection, unit testing in software development process.
The Code-based testing consists of following testing:
Dynamic Testing - Statement coverage, Branch coverage, Path coverage
Checking for Complexity of Code using techniques like Cyclomatic Complexit
Static Testing - Code Inspection, Code Walkthrough, Code Review, Code Audit