5#include <boost/test/unit_test.hpp>
17 SetWalletDir(m_walletdir_path_cases[
"default"]);
18 bool result = m_wallet_client->verify();
21 fs::path expected_path = fs::canonical(m_walletdir_path_cases[
"default"]);
27 SetWalletDir(m_walletdir_path_cases[
"custom"]);
28 bool result = m_wallet_client->verify();
31 fs::path expected_path = fs::canonical(m_walletdir_path_cases[
"custom"]);
37 SetWalletDir(m_walletdir_path_cases[
"nonexistent"]);
40 bool result = m_wallet_client->verify();
47 SetWalletDir(m_walletdir_path_cases[
"file"]);
50 bool result = m_wallet_client->verify();
57 SetWalletDir(m_walletdir_path_cases[
"relative"]);
60 bool result = m_wallet_client->verify();
67 SetWalletDir(m_walletdir_path_cases[
"trailing"]);
68 bool result = m_wallet_client->verify();
71 fs::path expected_path = fs::canonical(m_walletdir_path_cases[
"default"]);
77 SetWalletDir(m_walletdir_path_cases[
"trailing2"]);
78 bool result = m_wallet_client->verify();
81 fs::path expected_path = fs::canonical(m_walletdir_path_cases[
"default"]);
std::string GetArg(const std::string &strArg, const std::string &strDefault) const
Return string argument or default value.
Path class wrapper to prepare application code for transition from boost::filesystem library to std::...
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_default)
static path PathFromString(const std::string &string)
Convert byte string to path object.
#define BOOST_FIXTURE_TEST_SUITE(a, b)
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)
#define ASSERT_DEBUG_LOG(message)