yaml-cpp/test
Jonathan Hamilton b426fafff6 Fix some Node::operator[] regressions from 0.5.1
"const Node Node::operator[](const Key& key) const" changed from
returning new empty node if the key was missing in 0.5.1 to returning
a shared 'zombie' node in 0.5.2 to resolve a memory leak.

(Specifically 1025f76df1 was where this
was introduced)

This caused some regressions where this 'zombie' object threw exceptions
in some functions where the 'empty' object would not.

This change fixes the Node::as(fallback) method (to return the
'fallback' instead of throwing an exception) and the
Node::begin()/Node::end() methods to return default-constructed
iterators (so begin() == end() in such cases) instead of another
exception.
2015-06-08 11:47:10 -07:00
..
gmock-1.7.0 Add gmock as dependency 2014-03-23 12:04:03 -05:00
integration Fix operator bool() exception on zombie node 2015-03-29 14:31:22 -05:00
node Fix some Node::operator[] regressions from 0.5.1 2015-06-08 11:47:10 -07:00
CMakeLists.txt Merge from core 2015-02-21 12:34:19 -06:00
create-emitter-tests.py Add EmitterStyle, which will allow sequence or map style (i.e., flow or block) to be preserved between parsing and emitting 2015-01-24 12:19:20 -06:00
handler_test.h Factored out HandlerTest as a base class 2014-03-23 16:26:44 -05:00
main.cpp Convert node tests to gtest 2014-03-23 19:21:13 -05:00
mock_event_handler.h Add EmitterStyle, which will allow sequence or map style (i.e., flow or block) to be preserved between parsing and emitting 2015-01-24 12:19:20 -06:00
ostream_wrapper_test.cpp Run IWYU 2014-03-22 22:46:04 -05:00
specexamples.h Convert spec tests to gtest with gmock 2014-03-23 12:49:30 -05:00