mirror of
https://github.com/boostorg/json.git
synced 2026-02-09 11:12:37 +00:00
Add value_builder
This commit is contained in:
43
test/value_builder.cpp
Normal file
43
test/value_builder.cpp
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
|
||||
//
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/vinniefalco/BeastLounge
|
||||
//
|
||||
|
||||
// Test that header file is self-contained.
|
||||
#include <boost/json/value_builder.hpp>
|
||||
|
||||
#include "test_suite.hpp"
|
||||
|
||||
namespace boost {
|
||||
namespace json {
|
||||
|
||||
class value_builder_test
|
||||
{
|
||||
public:
|
||||
void
|
||||
testBuilder()
|
||||
{
|
||||
error_code ec;
|
||||
value_builder vb;
|
||||
vb.reset();
|
||||
vb.on_document_begin(ec);
|
||||
vb.on_null(ec);
|
||||
vb.on_document_end(ec);
|
||||
vb.release();
|
||||
}
|
||||
|
||||
void
|
||||
run()
|
||||
{
|
||||
testBuilder();
|
||||
}
|
||||
};
|
||||
|
||||
TEST_SUITE(value_builder_test, "boost.json.value_builder");
|
||||
|
||||
} // json
|
||||
} // boost
|
||||
Reference in New Issue
Block a user