Closed sebasgomez238 closed 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
d4ca976
) 74.9% compared to head (af562e8
) 74.9%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks! @cobya I added unit tests since I saw the codecov comments.
Currently the ScanCommand class returns an int. In the sbom-tool we rely on the ScanResult object which forced us to go a step below and use the ScanExecution itself. This is causing us to miss out on a few features such as the ability to write a ScanManifest file (https://github.com/microsoft/sbom-tool/issues/452).
This PR adds an extra method to the ScanCommand class that returns a ScanResult object instead of an int.
Let me know if there is more suitable name the current name is "ExecuteAsync" the method I added is "ExecuteScanAsync"