Compare commits
1 commit
604b423d1c
...
1a9b293dee
Author | SHA1 | Date | |
---|---|---|---|
1a9b293dee |
2 changed files with 2 additions and 7 deletions
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
|
@ -20,7 +20,7 @@
|
||||||
"program": "${workspaceFolder}/build/larra_xmpp_tests",
|
"program": "${workspaceFolder}/build/larra_xmpp_tests",
|
||||||
"args": [
|
"args": [
|
||||||
// --gtest_filter=POSTIVE_PATTERNS[-NEGATIVE_PATTERNS]
|
// --gtest_filter=POSTIVE_PATTERNS[-NEGATIVE_PATTERNS]
|
||||||
// "--gtest_filter=Roster*"
|
"--gtest_filter=Roster*"
|
||||||
],
|
],
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
"preLaunchTask": "GCC: Build"
|
"preLaunchTask": "GCC: Build"
|
||||||
|
|
|
@ -5,9 +5,6 @@
|
||||||
#include <larra/serialization/auto.hpp>
|
#include <larra/serialization/auto.hpp>
|
||||||
#include <larra/serialization/error.hpp>
|
#include <larra/serialization/error.hpp>
|
||||||
#include <larra/stream_error.hpp>
|
#include <larra/stream_error.hpp>
|
||||||
#include <variant>
|
|
||||||
|
|
||||||
#include "utempl/utils.hpp"
|
|
||||||
|
|
||||||
using namespace std::literals;
|
using namespace std::literals;
|
||||||
|
|
||||||
|
@ -34,9 +31,7 @@ TEST(Serialize, Variant) {
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(CheckFinalErrorPlace, Variant) {
|
TEST(CheckFinalErrorPlace, Variant) {
|
||||||
StreamError stream_error = error::stream::UnknownXmppError{};
|
ASSERT_EQ(std::variant_size<StreamError>::value, utempl::kTupleSize<StreamError>);
|
||||||
EXPECT_NO_THROW(std::get<std::variant_size_v<StreamError> - 1>(stream_error))
|
|
||||||
<< "'UnknownXmppError' must be at the end of 'StreamError' variant";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace tests::serialization {
|
namespace tests::serialization {
|
||||||
|
|
Loading…
Reference in a new issue