2
0
mirror of https://github.com/boostorg/url.git synced 2026-02-15 13:32:14 +00:00
Files
url/test/unit/grammar/recycled.cpp
Vinnie Falco a8e32142ee coverage
2022-08-09 07:30:56 -07:00

55 lines
1.0 KiB
C++

//
// Copyright (c) 2022 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/CPPAlliance/url
//
// Test that header file is self-contained.
#include <boost/url/grammar/recycled.hpp>
#include "test_suite.hpp"
#include <string>
namespace boost {
namespace urls {
namespace grammar {
struct recycled_test
{
void
testPtr()
{
}
void
run()
{
{
recycled_ptr<std::string> sp;
sp->reserve(1000);
BOOST_TEST(sp->capacity() >= 1000);
}
{
recycled_ptr<std::string> sp;
BOOST_TEST(sp->capacity() >= 1000);
}
// coverage
{
detail::recycled_add_impl(1);
detail::recycled_remove_impl(1);
}
}
};
TEST_SUITE(
recycled_test,
"boost.url.grammar.recycled");
} // grammar
} // urls
} // boost