mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
Description: This pull request introduces a new test case TestGetControlCmdWithNonExistentControl in the control_test.go file. The purpose of this test case is to verify the behavior of the getControlCmd function when it's run with a non-existent control argument. In this test case, we: Create a mock Kubescape interface and a ScanInfo object Call the getControlCmd function with the mock interface and ScanInfo object Run the command with a non-existent control argument Check that there is an error and the error message is "bad argument: account ID must be a valid UUID" This test case enhances the test coverage of the getControlCmd function and ensures that it correctly handles non-existent control arguments. Signed-off-by: Umair <58398786+Umair0343@users.noreply.github.com>