Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Fix [Golang] [Package] [Module] Main Command & FileSystem #22

Merged
merged 3 commits into from
Dec 9, 2023

Conversation

H0llyW00dzZ
Copy link
Owner

No description provided.

- [+] feat(file_system.go): add ReadFile method to FileSystem interface
- [+] fix(file_system.go): change receiver name from fs to rfs in Create and WriteFile methods
- [+] feat(file_system.go): implement ReadFile method in RealFileSystem
- [+] feat(file_system_mock.go): add Files map and ReadFile method to MockFileSystem
- [+] feat(file_system_mock.go): add NewMockFileSystem function
- [+] fix(main.go): change repairJSONData signature to accept FileSystem interface
- [+] fix(main.go): pass RealFileSystem instance to repairJSONData
- [+] fix(main.go): change saveToFile signature to accept FileSystem interface
- [+] fix(main.go): pass FileSystem interface instance to saveToFile
- [+] fix(main_test.go): change mockFS variable to use NewMockFileSystem function
- [+] fix(main_test.go): change repairedPath assertion to include file extension
- [+] fix(main_test.go): change repairedPath assertion to include file extension
- [+] fix(main_test.go): change WriteFileCalled assertion to check if true
- [+] fix(main_test.go): change WriteFilePath assertion to
- [+] chore(GopherCI.yml): add support for Windows in the matrix for both jobs
Copy link

github-actions bot commented Dec 9, 2023

CodeQL analysis is complete for PR #22

@H0llyW00dzZ H0llyW00dzZ marked this pull request as ready for review December 9, 2023 15:21
- [+] fix(main.go): change the repaired file path to prepend "repaired_" to the original file name
- [+] fix(main_test.go): change the name of the repaired file to "repaired_testing.json"
@H0llyW00dzZ H0llyW00dzZ merged commit f4d3de9 into master Dec 9, 2023
8 checks passed
@H0llyW00dzZ H0llyW00dzZ deleted the fsys branch December 9, 2023 15:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant