Closed Tjzabel closed 4 years ago
This is an ongoing effort.
We are still deciding on the best way to lay out our Go code for the most effective testing. This requires us to lay out our explicit function dependencies, and making sure we either move function dependencies to interfaces, or into the parameters.
@Tjzabel will follow up in this issue.
Some code excerpts related to what we discussed on the developer call today:
Since we have decided that the main teleirc.go
file is nothing but a shell calling other functions/files we've written (where all the testing would actually be), I am okay with marking this issue as closed.
The comment above falls in line with the external dependencies issue, and I don't believe is directly related to writing unit tests for the main TeleIRC entrypoint.
At this point, we need to start creating unit tests for config parsing (if needed), and the main TeleIRC file.