2
0
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:
Vinnie Falco
2020-08-13 10:59:18 -07:00
parent 0c8c95f65a
commit d2c7de6376
16 changed files with 1270 additions and 782 deletions

43
test/value_builder.cpp Normal file
View 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