mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Add EmitterStyle, which will allow sequence or map style (i.e., flow or block) to be preserved between parsing and emitting
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include "yaml-cpp/emitterstyle.h"
|
||||
#include "yaml-cpp/eventhandler.h"
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
@@ -14,11 +15,12 @@ class MockEventHandler : public EventHandler {
|
||||
MOCK_METHOD4(OnScalar, void(const Mark&, const std::string&, anchor_t,
|
||||
const std::string&));
|
||||
|
||||
MOCK_METHOD3(OnSequenceStart,
|
||||
void(const Mark&, const std::string&, anchor_t));
|
||||
MOCK_METHOD4(OnSequenceStart, void(const Mark&, const std::string&, anchor_t,
|
||||
EmitterStyle::value));
|
||||
MOCK_METHOD0(OnSequenceEnd, void());
|
||||
|
||||
MOCK_METHOD3(OnMapStart, void(const Mark&, const std::string&, anchor_t));
|
||||
MOCK_METHOD4(OnMapStart, void(const Mark&, const std::string&, anchor_t,
|
||||
EmitterStyle::value));
|
||||
MOCK_METHOD0(OnMapEnd, void());
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user