MCPcopy Create free account
hub / github.com/boostorg/beast / testBodyWriters

Method testBodyWriters

test/beast/http/write.cpp:967–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965 };
966
967 void
968 testBodyWriters()
969 {
970 {
971 test::stream s{ioc_};
972 message<true, const_body_writer> m;
973 try
974 {
975 write(s, m);
976 }
977 catch(std::exception const&)
978 {
979 }
980 }
981 {
982 error_code ec;
983 test::stream s{ioc_};
984 message<true, const_body_writer> m;
985 write(s, m, ec);
986 }
987 {
988 test::stream s{ioc_};
989 message<true, mutable_body_writer> m;
990 try
991 {
992 write(s, m);
993 }
994 catch(std::exception const&)
995 {
996 }
997 }
998 {
999 error_code ec;
1000 test::stream s{ioc_};
1001 message<true, mutable_body_writer> m;
1002 write(s, m, ec);
1003 }
1004 }
1005
1006#if BOOST_ASIO_HAS_CO_AWAIT
1007 void testAwaitableCompiles(

Callers

nothing calls this directly

Calls 1

writeFunction · 0.50

Tested by

no test coverage detected