Package org.egothor.methodatlas.command
Class DiffCommand
java.lang.Object
org.egothor.methodatlas.command.DiffCommand
- All Implemented Interfaces:
Command
CLI command handler for the
-diff mode.
Compares two MethodAtlas scan CSV outputs and emits a delta report showing added, removed, and modified test methods.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintexecute(PrintWriter out) Computes and emits the delta between the two scan CSV outputs.
-
Constructor Details
-
DiffCommand
Creates a new diff command.- Parameters:
before- path to the before scan CSVafter- path to the after scan CSV
-
-
Method Details
-
execute
Computes and emits the delta between the two scan CSV outputs.- Specified by:
executein interfaceCommand- Parameters:
out- writer that receives the delta report- Returns:
0always; errors reading the files propagate asIOException- Throws:
IOException- if either CSV file cannot be read
-