Skip to content

Move detail::read_file() to test/test.cc #2092

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

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

falbrechtskirchinger
Copy link
Contributor

The unit test code is the only user of the function.

read_file() now throws an exception if the file isn't found. This improves usability for CMake users by providing clearer error messages when running the test from the wrong directory.

The unit test code is the only user of the function.

read_file() now throws an exception if the file isn't found.
@yhirose yhirose merged commit 85b5cdd into yhirose:master Mar 6, 2025
2 of 7 checks passed
@yhirose
Copy link
Owner

yhirose commented Mar 6, 2025

@falbrechtskirchinger thanks for catching it!

@falbrechtskirchinger falbrechtskirchinger deleted the move-read_file branch March 6, 2025 17:16
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.

2 participants