MCPcopy Create free account
hub / github.com/comaps/comaps / Write

Method Write

libs/platform/platform_tests_support/test_socket.cpp:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45bool TestSocket::Write(uint8_t const * data, uint32_t count)
46{
47 if (!m_isConnected)
48 return false;
49
50 {
51 std::lock_guard lg(m_outputMutex);
52 m_output.insert(m_output.end(), data, data + count);
53 }
54 m_outputCondition.notify_one();
55 return true;
56}
57
58void TestSocket::SetTimeout(uint32_t milliseconds)
59{

Callers 4

ScopedFileMethod · 0.45
UNIT_TESTFunction · 0.45
UNIT_TESTFunction · 0.45
UNIT_TESTFunction · 0.45

Calls 2

insertMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected