Move Test files to tesdata directory

This commit is contained in:
suhasgumma
2022-12-15 11:19:04 +05:30
parent 8079f9ae7d
commit 89fd7eb439
34 changed files with 4 additions and 4 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

BIN
core/.DS_Store vendored Normal file

Binary file not shown.

BIN
core/pkg/.DS_Store vendored Normal file

Binary file not shown.

BIN
core/pkg/fixhandler/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -28,9 +28,9 @@ func NewFixHandlerMock() (*FixHandler, error) {
}, nil
}
func fixCommandPath() string {
o, _ := os.Getwd()
return filepath.Join(filepath.Dir(o), "..", "..", "examples", "fix-command")
func getTestdataPath() string {
currentDir, _ := os.Getwd()
return filepath.Join(currentDir, "testdata")
}
func testDirectoryApplyFixHelper(t *testing.T, yamlExpressions *[][]string, directoryPath string) {
@@ -98,7 +98,7 @@ func testDirectoryApplyFixHelper(t *testing.T, yamlExpressions *[][]string, dire
}
func testDirectoryApplyFix(t *testing.T, directory string) {
directoryPath := filepath.Join(fixCommandPath(), directory)
directoryPath := filepath.Join(getTestdataPath(), directory)
var yamlExpressions [][]string
switch directory {

BIN
core/pkg/fixhandler/testdata/.DS_Store vendored Normal file

Binary file not shown.