Skip to content
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

Clean unittest imports #2011

Merged
merged 3 commits into from Mar 16, 2014

Conversation

tklein23
Copy link
Contributor

Our unit tests are doing a lot of obsolete #include's.

I used static code analysis to find #include problems, but I only chose to remove obsolete imports. It's only a first step, but it could become even cleaner if we repeat this step.

See my attached commits for cleaner unit tests.

@karlnapf
Copy link
Member

Wow thats great! I guess you did this by hand? No automagic way? :)

@tklein23
Copy link
Contributor Author

I used static code analysis and it was suggesting "diffs" on how to change the sources. The automagical fix would do too much... consider this one to be a proof-of-concept and later we can check how to improve.

@tklein23
Copy link
Contributor Author

Maybe we get something similar with clangs next release, so we see it in the static analysis.

tklein23 added a commit that referenced this pull request Mar 16, 2014
Clean unittest imports (removed obsolete imports as a first step)
@tklein23 tklein23 merged commit f971d4f into shogun-toolbox:develop Mar 16, 2014
@tklein23 tklein23 deleted the clean_unittest_imports branch March 16, 2014 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants