proposal for filesystem interface, sample implementation for record.go#178
proposal for filesystem interface, sample implementation for record.go#178KonstantinGasser wants to merge 1 commit intodominikbraun:mainfrom
Conversation
…ion to new for record.go
|
@dominikbraun one follow-up question I have; If the file-system is separated in multiple interfaces for each resource. What would you suggest could be a "best" way to test the separated components? In the background there still will be one |
Yes, those tests for the |
this is the start of the rolling PR for #121.
in
timetrace.goI have defined three interfaces to interact with the filesystem.ProjectFS,RecordFSandReportFS. The code will compile but not work since the dependency injection is not yet done for the interfaces. Inrecord.goI have changed all current interactions with thefsor theos/ioutillib with the newrecordFSinterface.I'd be happy for feedback on the interfaces and possible unclearness regarding decoupling the fs into multiple interfaces.