+/EE379K
programming paradigms
git clone https://git.julia.blue/+/EE379K
4d49e46
master
1Develop an approach to compute and report code coverage for a given 2Java program. An input to your tool will be a single Java file with 1 3or more classes; the input file will be called Input.java (which will 4contain Input class and a main method). It is expected that you will 5instrument code dynamically (using Java agents). In this assignment, 6to keep things simple, we only care about method coverage, i.e., each 7method is covered or not during the execution. Additionally, you 8should collect for each method how many times it was executed. (You 9can solve this in many ways; here are three: 10 111: you can add a counter to each class for every method and increment 12(once the execution is done print all counters) 13 142: collect information for each method in a separate class that is 15invoked at the beginning of each method (and the name of class+method 16is passed as an argument) 17 183: print (to stdout or a file) every method being executed and then 19compute the count for each method in a script.