How can I check that I didn't break anything when refactoring?
Posted
by Nathan Fellman
on Stack Overflow
See other posts from Stack Overflow
or by Nathan Fellman
Published on 2009-12-20T09:14:48Z
Indexed on
2010/04/14
9:53 UTC
Read the original article
Hit count: 266
I'm about to embark on a bout of refactoring of some functions in my code. I have a nice amount of unit tests that will ensure I didn't break anything, but I'm not sure about the coverage they give me. Are there any tools that can analyze the code and see that the functionality remains the same?
I plan to refactor some rather isolated code, so I don't need to check the entire program, just the areas that I'm working on.
For context, the code I'm working on is in C/C++, and I work in Linux with GCC and VIM.
© Stack Overflow or respective owner