-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Update tooManyConfigsError error message to prevent duplication in error message #7927
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
base: main
Are you sure you want to change the base?
Update tooManyConfigsError error message to prevent duplication in error message #7927
Conversation
|
Please add a test. |
|
Thanks but a unit test does not seem to make sense here as it is not clear how actual inputs can trigger this behavior. Also the unit test just calls the function triggering the error should might not represent as it actually occurs in the executors. So it might be tested cases which will never occur. |
You are right, but looking at it, the only place where it would make sense to test that empty file, would be the getErrorMessages UT. I added an update, so you can see how it would look like. But I, myself, am not too happy about how it looks like. |
|
| else | ||
| msg << " configurations.\n"; | ||
|
|
||
| msg << "The checking of the file will be interrupted because there are too many " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was not caused by you. But the verbose message does not say how many configurations are checked or what the maxConfigs options is and that is unfortunate.
imho the idea of unit tests is to test each function individually. And I like to unit test functions.
well it would be interesting to know if this can be reproduced. Spontanously I don't understand why this function would ever be called when numberOfConfigurations is <= maxConfigs .. can you @GNL10 share some info about this? |



No description provided.