mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-13 22:50:19 +02:00
Added a visitor version of unpack API,
The current unpacking APIs are constructed on the visitor mechanism. (Fixed #418) Updated test condition.
This commit is contained in:
@@ -48,6 +48,9 @@ TEST(streaming, basic)
|
||||
}
|
||||
}
|
||||
|
||||
// obsolete
|
||||
#if MSGPACK_DEFAULT_API_VERSION == 1
|
||||
|
||||
TEST(streaming, basic_pointer)
|
||||
{
|
||||
msgpack::sbuffer buffer;
|
||||
@@ -94,6 +97,8 @@ TEST(streaming, basic_pointer)
|
||||
}
|
||||
}
|
||||
|
||||
#endif // MSGPACK_DEFAULT_API_VERSION == 1
|
||||
|
||||
#if !defined(MSGPACK_USE_CPP03)
|
||||
|
||||
TEST(streaming, move)
|
||||
@@ -207,6 +212,8 @@ TEST(streaming, event)
|
||||
handler.on_read();
|
||||
}
|
||||
|
||||
// obsolete
|
||||
#if MSGPACK_DEFAULT_API_VERSION == 1
|
||||
|
||||
// backward compatibility
|
||||
TEST(streaming, basic_compat)
|
||||
@@ -314,3 +321,5 @@ TEST(streaming, event_compat)
|
||||
handler.expect = 3;
|
||||
handler.on_read();
|
||||
}
|
||||
|
||||
#endif // !defined(MSGPACK_USE_CPP03)
|
||||
|
Reference in New Issue
Block a user