Commit 3aac5ac2 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[3427] Changes after review:

 - variables, test renamed in daemon unit-tests
 - verbose parameter documented in Daemon class
parent c2b7c2d8
......@@ -138,6 +138,8 @@ public:
/// 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;
}
......
......@@ -27,12 +27,12 @@ namespace {
// 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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment