Closed bashbashbash closed 5 years ago
does a file being nil mean that that the file does not exist or that there is nothing within the file
tbh, I'm not sure what I'm supposed to be doing with this. Do I have to create an interface in the test and run the LoadJSON function with it. If so, what goes in the interface.
completed
package context: internal/jsonify
Please create tests for the function LoadJSON. Please consider cases where interface is not empty, interface is invalid, interface is nil, file is nil, file is invalid, file is not open, and how to handle various errors returned. Also consider valid cases.
Please following file naming conventions for testing and please include comments to specify what each test is performing
Resources: