- variables, test renamed in daemon unit-tests
- verbose parameter documented in Daemon class
/// Verbose mode (-v in command-line) triggers loggers to log everythin
/// (sets severity to DEBUG and debuglevel to 99). Values specified in the
/// config file are ignored.
+ ///
+ /// @param verbose specifies if verbose should be set or not
void setVerbose(bool verbose) {
verbose_ = verbose;
}
// Very simple test. Checks whether Daemon can be instantiated and its
// default parameters are sane
-TEST(DaemonTest, noop) {
- EXPECT_NO_THROW(Daemon x);
+TEST(DaemonTest, constructor) {
+ EXPECT_NO_THROW(Daemon instance1);
// Check that the verbose mode is not set by default.
- Daemon y;
- EXPECT_FALSE(y.getVerbose());
+ Daemon instance2;
+ EXPECT_FALSE(instance2.getVerbose());
}
// Checks that configureLogger method is behaving properly.