Refactor service package tests
The directory pkg/gofr/service has a lot of code duplication in tests and the code can also be cleaned and refactored.
assign
Sure @aaryyya assigning the same to you.
Can i work on it too? there is much files for two
I would like to assist on this issue, please assign me asap
@Umang01-hash can u please provide any examples of duplication and also in what way would u like the code refactored or do u want the duplication removed as refactoring? ?
@Umang01-hash can u please provide any examples of duplication and also in what way would u like the code refactored or do u want the duplication removed as refactoring? ?
Hi so the issue is I think There might be redundant code that can be reduced into common helper functions and can be used. I think he means that.
@aaryyya most of the duplicated code was tests inside new_test.go, that was refactored in PR #2440.
I think we can close the issue for now. If you find any code that is duplicated, or not reused properly in service package we can reopen the issue and work on the same.