Skip to content

Commit

Permalink
odb tests: wrapping helper's env methods in odb namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Garay <fgaray@google.com>
  • Loading branch information
fgaray committed Jan 5, 2024
1 parent c2373a2 commit dfc8c90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/odb/test/cpp/helper/env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

#include <stdexcept>

namespace odb {

std::string testTmpPath(const std::string& file)
{
const char* base_dir = std::getenv("BASE_DIR");
Expand All @@ -42,3 +44,5 @@ std::string testTmpPath(const std::string& file)
}
return std::string(base_dir) + file;
}

} // namespace odb
2 changes: 2 additions & 0 deletions src/odb/test/cpp/helper/env.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@

#pragma once

namespace odb {
std::string testTmpPath(const std::string& file);
} // namespace odb

0 comments on commit dfc8c90

Please sign in to comment.