proxygen
|
#include <folly/experimental/settings/Settings.h>
#include <folly/Format.h>
#include <folly/portability/GTest.h>
#include <folly/experimental/settings/test/a.h>
#include <folly/experimental/settings/test/b.h>
Go to the source code of this file.
Classes | |
struct | some_ns::UserDefinedType |
Namespaces | |
some_ns | |
Functions | |
some_ns::FOLLY_SETTING_DEFINE (follytest, some_flag, std::string,"default","Description") | |
some_ns::FOLLY_SETTING_DEFINE (follytest, unused, std::string,"unused_default","Not used, but should still be in the list") | |
some_ns::FOLLY_SETTING_DEFINE (follytest, multi_token_type, unsigned int, 123,"Test that multi-token type names can be used") | |
template<class String > | |
void | some_ns::toAppend (const UserDefinedType &t, String *out) |
some_ns::FOLLY_SETTING_DEFINE (follytest, user_defined, UserDefinedType,"b","User defined type constructed from string") | |
TEST (Settings, user_defined) | |
TEST (Settings, basic) | |
TEST (Settings, snapshot) | |
TEST | ( | Settings | , |
user_defined | |||
) |
Definition at line 89 of file SettingsTest.cpp.
References EXPECT_EQ, EXPECT_THROW, EXPECT_TRUE, FOLLY_SETTING, folly::settings::Snapshot::getAsString(), deadlock::info(), folly::settings::Snapshot::publish(), folly::settings::Snapshot::resetToDefault(), folly::settings::Snapshot::setFromString(), and some_ns::UserDefinedType::value_.
TEST | ( | Settings | , |
basic | |||
) |
Definition at line 148 of file SettingsTest.cpp.
References a_ns::a_func(), b_ns::b_func(), folly::settings::SettingMetadata::defaultStr, folly::settings::SettingMetadata::description, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, FOLLY_SETTING, folly::settings::Snapshot::forEachSetting(), folly::settings::Snapshot::getAsString(), a_ns::getRemote(), folly::settings::getSettingsMeta(), if(), folly::settings::SettingMetadata::name, folly::settings::SettingMetadata::project, folly::settings::Snapshot::publish(), folly::settings::Snapshot::resetToDefault(), folly::settings::Snapshot::setFromString(), a_ns::setRemote(), folly::sformat(), folly::size(), string, folly::settings::SettingMetadata::typeId, folly::settings::SettingMetadata::typeStr, and value.
TEST | ( | Settings | , |
snapshot | |||
) |
Definition at line 273 of file SettingsTest.cpp.
References EXPECT_EQ, FOLLY_SETTING, and folly::settings::Snapshot::publish().