Problem: poller_t does not have great test coverage

@sigiesec's recent commits with gtests and basics tests for zmq
types (thanks for that!) makes it too convinient to not add some more tests.

* Adding some simple tests for poller_t
* Stripped whitespaces from poller implementation.
This commit is contained in:
Pawel Kurdybacha
2018-04-07 22:56:53 +01:00
parent 9c1b785edb
commit 18f8035ba8
2 changed files with 105 additions and 6 deletions

View File

@@ -1003,10 +1003,10 @@ namespace zmq
assert(rc == 0);
}
}
poller_t(const poller_t&) = delete;
poller_t &operator=(const poller_t&) = delete;
poller_t(poller_t&& src)
poller_t(poller_t&& src)
: poller_ptr(src.poller_ptr)
, poller_events(std::move (src.poller_events))
{
@@ -1018,7 +1018,7 @@ namespace zmq
poller_events = std::move (src.poller_events);
src.poller_ptr = NULL;
return *this;
}
}
void add (zmq::socket_t &socket, short events, std::function<void(void)> &handler)
{