mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
Title: Add Test Case for Non-Existent Image in GetPatchCmd Description: This pull request introduces a new test case TestGetPatchCmdWithNonExistentImage in the patch_test.go file. The purpose of this test case is to verify the behavior of the GetPatchCmd function when it's run with a non-existent image argument. In this test case, we: Create a mock Kubescape interface Call the GetPatchCmd function with the mock interface Run the command with a non-existent image argument Check that there is an error and the error message is "image tag is required" This test case enhances the test coverage of the GetPatchCmd function and ensures that it correctly handles non-existent image arguments. Signed-off-by: Umair <58398786+Umair0343@users.noreply.github.com>
1.7 KiB
1.7 KiB