-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix [Golang] [Package] [Module] Main Command & FileSystem (#22)
* Fix [Golang] [Package] [Module] Main Command & FileSystem - [+] 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 CI Gopher Unit Testing 🧪 - [+] chore(GopherCI.yml): add support for Windows in the matrix for both jobs * Fix [Golang] [Module] Main Command Repairing Data - [+] 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"
- Loading branch information
1 parent
c190e0f
commit f4d3de9
Showing
5 changed files
with
74 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters