Improvements to increase code coverage:

* Don't include the test code in coverage reports
* Add test code for missing coverage

Other:

* Improve the README.md
* Fix warning in sha1_context
* Tidy up the examples use of namespaces
* Various fixes to documentation and javadocs
This commit is contained in:
Vinnie Falco committed 2017-07-20 08:12:06 -07:00
1 parent 231988622c
commit 133e7a3b16
49 files changed
+1054 -447

No files matched your search

+12
View File
@@ -81,10 +81,22 @@ public:
expect(buffer_copy(cb2, cb) == 0);
}
void testIterator()
{
using boost::asio::const_buffer;
std::array<const_buffer, 3> ba;
consuming_buffers<decltype(ba)> cb(ba);
std::size_t n = 0;
for(auto it = cb.end(); it != cb.begin(); --it)
++n;
expect(n == 3);
}
void run() override
{
testBuffers();
testNullBuffers();
testIterator();
}
};