28 #if defined(_DEBUG) || defined(G_TEST_ENABLED)
45 spec =
"," + spec +
"," ;
49 bool result = spec.empty() ?
false : ( spec.find(
","+std::string(name)+
",") != std::string::npos ) ;
52 static std::set<std::string> warned ;
53 if( warned.find(name) == warned.end() )
55 warned.insert( name ) ;
56 G_WARNING(
"G::Test::enabled: test case enabled: [" << name <<
"]" ) ;
static std::string get(const std::string &name, const std::string &default_)
Returns the environment variable value or the given default.
static void set(const std::string &)
Sets the test specification string.
static bool enabled()
Returns true if test features are enabled.