Coverage Report

Created: 2024-04-30 09:35

test/zserio/ConstraintExceptionTest.cpp
Line
Count
Source
1
#include "gtest/gtest.h"
2
#include "zserio/ConstraintException.h"
3
4
namespace zserio
5
{
6
7
TEST(ConstraintExceptionTest, correctTypeAfterAppend)
8
1
{
9
1
    ASSERT_THROW(
10
1
            {
11
1
                throw ConstraintException()
12
1
                        << "Test that appending using operator<< persists the exception type!";
13
1
            },
14
1
            ConstraintException);
15
1
}
16
17
} // namespace zserio