You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When adding new tests, it's common to copy the definition of a previous test and modify the contents. However, sometimes the test writer forgets to change the name of the new section or test, and it overwrites the old test definition.
Describe the solution you'd like
Inside ct_add_section, we can do a quick check to see if the given name is already a section in the parent unit.
Alternatively, we could do a cpp_type_of() to check if the function with that name is already defined, this would additionally catch any errors with the weird scoping rules.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When adding new tests, it's common to copy the definition of a previous test and modify the contents. However, sometimes the test writer forgets to change the name of the new section or test, and it overwrites the old test definition.
Describe the solution you'd like
Inside
ct_add_section
, we can do a quick check to see if the given name is already a section in the parent unit.Alternatively, we could do a
cpp_type_of()
to check if the function with that name is already defined, this would additionally catch any errors with the weird scoping rules.The text was updated successfully, but these errors were encountered: