-
Notifications
You must be signed in to change notification settings - Fork 75
fix: Include TestGlobals.hpp is using <> instead of quotations #2618
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2618 +/- ##
========================================
Coverage 81.94% 81.94%
========================================
Files 380 380
Lines 14230 14230
Branches 7852 7852
========================================
Hits 11661 11661
Misses 1433 1433
Partials 1136 1136 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| sed_script=$(mktemp) | ||
| for header in $all_local_headers; do | ||
| escaped_header=$(printf '%s\n' "$header" | sed 's/[\/&]/\\&/g') | ||
| echo "s|#include[[:space:]]*[\"<]$escaped_header[\">]|#include \"$header\"|g" >> "$sed_script" | ||
| done |
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.
Is it possible to make replacements directly, instead of generating code to make replacements?
| fi | ||
|
|
||
| # Get a list of all header filenames in src/ and tests/ (recursively, unique) | ||
| all_local_headers=$(find ./src ./tests -type f \( -name '*.hpp' -o -name '*.h' \) -exec basename {} \; | sort -u) |
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.
We don't have *.h files
| fi | ||
|
|
||
| # Get a list of all header filenames in src/ and tests/ (recursively, unique) | ||
| all_local_headers=$(find ./src ./tests -type f \( -name '*.hpp' -o -name '*.h' \) -exec basename {} \; | sort -u) |
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.
Do we need 2 implementations?
I mean using both main_src_dirs and all_local_headers?
Fix #1642