主权项 |
1. A method for providing code coverage of a code, the method comprising:
determining, by a processor, a type of file comprising a code; extracting, by the processor, a source code from the code based on the type of file, wherein the source code is extracted using a parser; processing, by the processor, the source code for generating a structured source code; creating, by the processor, code blocks indicative of a portion of the structured source code, based on a type of declaration of statements, functions, and sub-functions; determining, by the processor, code coverage of the structured source code by executing test cases upon the structured source code; and providing, by the processor, a code coverage report comprising line coverages, program coverages, and code block coverages of the structured source code. |