Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
e39fef1f
Commit
e39fef1f
authored
Nov 11, 2016
by
Steven Murray
Browse files
Added unit-test toLogLevel_INVALID_LOG_LEVEL
parent
046da9cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/log/LogLevelTest.cpp
View file @
e39fef1f
...
...
@@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include
"common/exception/Exception.hpp"
#include
"common/log/LogLevel.hpp"
#include
<gtest/gtest.h>
...
...
@@ -88,4 +89,11 @@ TEST_F(cta_log_LogLevelTest, toLogLevel_USERERR) {
ASSERT_EQ
(
NOTICE
,
toLogLevel
(
"USERERR"
));
}
TEST_F
(
cta_log_LogLevelTest
,
toLogLevel_INVALID_LOG_LEVEL
)
{
using
namespace
cta
;
using
namespace
cta
::
log
;
ASSERT_THROW
(
toLogLevel
(
"toLogLevel_INVALID_LOG_LEVEL"
),
exception
::
Exception
);
}
}
// namespace unitTests
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment