19 lines
401 B
C++
19 lines
401 B
C++
#pragma once
|
|
|
|
#include <filesystem>
|
|
#include <iostream>
|
|
|
|
namespace test_fixture {
|
|
|
|
inline bool optional_codec_missing(const char* path) {
|
|
if (path && *path && std::filesystem::exists(path))
|
|
return false;
|
|
std::cerr << "Optional schema codec is missing";
|
|
if (path && *path)
|
|
std::cerr << " at " << path;
|
|
std::cerr << '\n';
|
|
return true;
|
|
}
|
|
|
|
} // namespace test_fixture
|