]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/beast/test/beast/http/verb.cpp
2 // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // Official repository: https://github.com/boostorg/beast
10 // Test that header file is self-contained.
11 #include <boost/beast/http/verb.hpp>
13 #include <boost/beast/unit_test/suite.hpp>
20 : public beast::unit_test::suite
29 BEAST_EXPECT(string_to_verb(to_string(v
)) == v
);
47 good(verb::proppatch
);
55 good(verb::mkactivity
);
60 good(verb::subscribe
);
61 good(verb::unsubscribe
);
64 good(verb::mkcalendar
);
71 auto const v
= string_to_verb(s
);
72 BEAST_EXPECTS(v
== verb::unknown
, to_string(v
));
111 to_string(static_cast<verb
>(-1));
112 fail("", __FILE__
, __LINE__
);
114 catch(std::exception
const&)
127 BEAST_DEFINE_TESTSUITE(beast
,http
,verb
);