Changeset View
Changeset View
Standalone View
Standalone View
src/test/util_tests.cpp
Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | BOOST_AUTO_TEST_CASE(util_FormatISO8601DateTime) { | ||||
BOOST_CHECK_EQUAL(FormatISO8601DateTime(1317425777), | BOOST_CHECK_EQUAL(FormatISO8601DateTime(1317425777), | ||||
"2011-09-30T23:36:17Z"); | "2011-09-30T23:36:17Z"); | ||||
} | } | ||||
BOOST_AUTO_TEST_CASE(util_FormatISO8601Date) { | BOOST_AUTO_TEST_CASE(util_FormatISO8601Date) { | ||||
BOOST_CHECK_EQUAL(FormatISO8601Date(1317425777), "2011-09-30"); | BOOST_CHECK_EQUAL(FormatISO8601Date(1317425777), "2011-09-30"); | ||||
} | } | ||||
BOOST_AUTO_TEST_CASE(util_FormatISO8601Time) { | |||||
BOOST_CHECK_EQUAL(FormatISO8601Time(1317425777), "23:36:17Z"); | |||||
} | |||||
struct TestArgsManager : public ArgsManager { | struct TestArgsManager : public ArgsManager { | ||||
TestArgsManager() { m_network_only_args.clear(); } | TestArgsManager() { m_network_only_args.clear(); } | ||||
std::map<std::string, std::vector<std::string>> &GetOverrideArgs() { | std::map<std::string, std::vector<std::string>> &GetOverrideArgs() { | ||||
return m_override_args; | return m_override_args; | ||||
} | } | ||||
std::map<std::string, std::vector<std::string>> &GetConfigArgs() { | std::map<std::string, std::vector<std::string>> &GetConfigArgs() { | ||||
return m_config_args; | return m_config_args; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,265 Lines • Show Last 20 Lines |