test_input_filter
test_output_filter
test_filter_pair
The header <boost/iostreams/filter/test.hpp>
provides several overloaded function templates for verifying that a filter works as expected when used in conjunction with non-Blocking Sources and Sinks.
<boost/iostreams/filter/test.hpp>
test_input_filter
Verifies that the given InputFilter yields the given output when passed the given input.
namespace boost { namespace iostreams { template<typename InputFilter> bool test_input_filter( InputFilter filter, const std::string& input, const std::string& output ); template<typename InputFilter, typename Source1, typename Source2> bool test_input_filter( InputFilter filter, const Source1& input, const Source2& output ); } } // End namespace boost::io
test_output_filter
Verifies that the given OutputFilter yields the given output when passed the given input.
namespace boost { namespace iostreams { template<typename OutputFilter> bool test_output_filter( OutputFilter filter, const std::string& input, const std::string& output ); template<typename OutputFilter, typename Source1, typename Source2> bool test_output_filter( OutputFilter filter, const Source1& input, const Source2& output ); } } // End namespace boost::io
test_filter_pair
Verifies that the given data is preserved when it is passed first through a given OutputFilter and then through a given InputFilter.
namespace boost { namespace iostreams { template<typename OutputFilter, typename InputFilter> bool test_filter_pair( OutputFilter first, InputFilter second, const std::string& data ); template<typename OutputFilter, typename InputFilter, typename Source> bool test_filter_pair( OutputFilter first, InputFilter second, const Source& data ); } } // End namespace boost::io
© Copyright 2008 CodeRage, LLC
© Copyright 2004-2007 Jonathan Turkanis
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)