-
Notifications
You must be signed in to change notification settings - Fork 165
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
RepoConfigurationTest: Simplify code in repoConfig_ignoresStandaloneConfig_success
test case
#962
Comments
repoConfig_ignoresStandaloneConfig_success
test case can be simplifiedrepoConfig_ignoresStandaloneConfig_success
test case
Yes, it is duplicating some parts of the method. However, I believe it is necessary.
|
Thanks for the response @fzdy1914. It makes sense that it may not be a good idea to use In that case, perhaps we should edit the RepoSense/src/test/java/reposense/model/RepoConfigurationTest.java Lines 167 to 186 in a2adb59
|
@anubh-v True, it is better not to use this method. When I wrote this method previously, I should forget to take it into account. However, it may be an overkill to create a separate PR for just fixing this issue. Maybe you can consider sneaking in the code when toughing this file in other related PR. |
The code snippet below shows the
repoConfig_ignoresStandaloneConfig_success
test case.In lines 153 - 157, we parse some input to create a list of
RepoConfiguration
objects.RepoSense/src/test/java/reposense/model/RepoConfigurationTest.java
Lines 130 to 164 in a2adb59
The lines 153 - 157 can be replaced with the line below:
It seems that the lines 153 - 157 are duplicating the same work done in the
getRepoConfigurations
method of theRepoSense
class.Please let me know if I'm misunderstanding something here.
The text was updated successfully, but these errors were encountered: