mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Tidy up tests, build scripts, and documentation:
* Concepts split up into individual files * Function definitions moved to .ipp files * Add more tests to fill gaps in coverage * Fix documentation Xsl
This commit is contained in:
30
test/stream_concepts.cpp
Normal file
30
test/stream_concepts.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// Copyright (c) 2013-2016 Vinnie Falco (vinnie dot falco at gmail dot 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)
|
||||
//
|
||||
|
||||
// Test that header file is self-contained.
|
||||
#include <beast/stream_concepts.hpp>
|
||||
#include <boost/asio/ip/tcp.hpp>
|
||||
|
||||
namespace beast {
|
||||
|
||||
using stream_type = boost::asio::ip::tcp::socket;
|
||||
|
||||
static_assert(has_get_io_service<stream_type>::value, "");
|
||||
static_assert(is_AsyncReadStream<stream_type>::value, "");
|
||||
static_assert(is_AsyncWriteStream<stream_type>::value, "");
|
||||
static_assert(is_AsyncStream<stream_type>::value, "");
|
||||
static_assert(is_SyncReadStream<stream_type>::value, "");
|
||||
static_assert(is_SyncWriteStream<stream_type>::value, "");
|
||||
static_assert(is_SyncStream<stream_type>::value, "");
|
||||
|
||||
static_assert(! has_get_io_service<int>::value, "");
|
||||
static_assert(! is_AsyncReadStream<int>::value, "");
|
||||
static_assert(! is_AsyncWriteStream<int>::value, "");
|
||||
static_assert(! is_SyncReadStream<int>::value, "");
|
||||
static_assert(! is_SyncWriteStream<int>::value, "");
|
||||
|
||||
} // beast
|
||||
Reference in New Issue
Block a user