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

A temporary directory utility function for file I/O tests. #189

Merged
merged 1 commit into from
Nov 18, 2022

Conversation

samcunliffe
Copy link
Member

@samcunliffe samcunliffe commented Nov 17, 2022

Adding tmp directory function which was developed for #181, but seems like it's useful already.

@alessandrofelder mentioned that there might be a cleaner(?) way to do this in CMake (which I haven't investigated). But mine is now only a few lines of C++ from the std library. So hopefully not too clunky.


The *_utils.h file has a messy diff because I changed the indentation. I'd recommend turning whitespace off (if you haven't already done so).

@samcunliffe samcunliffe added testing Adding or requesting more test coverage housekeeping Code cleanup labels Nov 17, 2022
@@ -5,12 +5,15 @@
#pragma once

#include <complex>
#include <filesystem>
#include <random>
#include <string>

namespace tdms_tests {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Namespaces shouldn't be indented according to Google.

@samcunliffe samcunliffe merged commit 3d0fe2c into main Nov 18, 2022
@samcunliffe samcunliffe deleted the testing-fileio-in-temporary-directory branch November 18, 2022 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Code cleanup testing Adding or requesting more test coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants