-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create tests for core/formatter.go
#121
Comments
Note: Some tests for |
I started with writing some test cases for |
Absolutely: I planned to migrate to afero for accessing the filesystem but didn't have the time yet. First, add a field of the type |
That's a pretty cool library, thanks for the tip! I will work on that today/tomorrow. |
I think I will provide the implementation of the EDIT: thought the changes would be more - change to |
I have found a couple of places in |
Hi @dominikbraun, sorry for taking so long, had a lot of things going on in university.. I just came back to this issue and writing tests for the fs. One problem I see is that we are using the What I can image is to clearly define an interface to interact with the Fs and swap the fs logic in the project,recods and timetrace file to use this interface. Do you have any thoughts about this and can assist me? |
Hi @KonstantinGasser, yes, a stronger separation between the filesystem access and the business logic probably would make sense. On this occasion, we could also separate the |
Ok I will test out some implementations for that. I probably will also need to change the dependency injection then. |
Yes, a rolling review would be nice here - and this probably will also affect some open PRs, hopefully the merge conflicts won't be too severe. |
There should be Table Driven Tests for
core/formatter.go
. They should be structured similar to the tests incore/timetrace_test.go
.The text was updated successfully, but these errors were encountered: