Unit Test#
Coverage: 32.2% (19 of 59 items OK)
[MISSING] GoogleTest Test ClientConnectionTest:Constructed
Traces to:
unknown tracing target req MessagePassingComponent.REQ_MP_COMP_001
Derived from:
missing up reference
Source: score/message_passing/client_connection_test.cpp:331
[MISSING] GoogleTest Test ClientConnectionTest:ConstructedStopDoesNothing
[MISSING] GoogleTest Test ClientConnectionTest:TryingToConnectOnceStoppingWhileConnecting
[MISSING] GoogleTest Test ClientConnectionTest:TryingToSyncConnectOnceStoppingWhileConnecting
[MISSING] GoogleTest Test ClientConnectionTest:TryingToConnectOnceStoppingOnHardError
[MISSING] GoogleTest Test ClientConnectionTest:TryingToSyncConnectOnceStoppingOnHardError
[MISSING] GoogleTest Test ClientConnectionTest:TryingToConnectMultipleTimesStoppingOnPermissionError
[MISSING] GoogleTest Test ClientConnectionTest:TryingToSyncConnectMultipleTimesStoppingOnPermissionError
[MISSING] GoogleTest Test ClientConnectionTest:TryingToConnectMultipleTimesFinallyConnectingAndImplicitlyStopping
[MISSING] GoogleTest Test ClientConnectionTest:SuccessfullyConnectingAtFirstAttemptThenExplicitlyStopping
[MISSING] GoogleTest Test ClientConnectionTest:SuccessfullyConnectingAtFirstAttemptWithDelayThenExplicitlyStopping
[MISSING] GoogleTest Test ClientConnectionTest:SuccessfullySyncConnectingAtFirstAttemptThenExplicitlyStopping
[MISSING] GoogleTest Test ClientConnectionTest:SuccessfullyConnectingAtFirstAttemptThenExplicitlyStoppingAsIfFromCallback
[MISSING] GoogleTest Test ClientConnectionTest:SuccessfullySyncConnectingAtFirstAttemptThenExplicitlyStoppingAsIfFromCallback
[MISSING] GoogleTest Test ClientConnectionTest:ConnectedRestartdDoesNothing
[MISSING] GoogleTest Test ClientConnectionTest:SendTooLarge
- Verifies:
MessagePassing.SendBufferArgumentValidation, MessagePassing.BE_MessageTooBig
- Given:
client connection established with
max_send_size = kMaxSendSize- When:
any send variant is called with a buffer larger than
kMaxSendSize- Then:
each call returns
EMSGSIZE
Derived from:
missing up reference
Source: score/message_passing/client_connection_test.cpp:642
[MISSING] GoogleTest Test ClientConnectionTest:SendIsDirectWithOurDefaultConfig
[MISSING] GoogleTest Test ClientConnectionTest:SendIsDirectWithFullyOrderedAndEmptyQueue
[MISSING] GoogleTest Test ClientConnectionTest:SendWaitReplyFailsWhenReceiveTooLong
- Verifies:
MessagePassing.SendBufferArgumentValidation, MessagePassing.BE_MessageTooBig
- Given:
client connection established with
max_reply_size = kMaxReplySize- When:
server sends a reply larger than
kMaxReplySize- Then:
SendWaitReplyreturnsEMSGSIZE
Derived from:
missing up reference
Source: score/message_passing/client_connection_test.cpp:906
[MISSING] GoogleTest Test ClientConnectionTest:ConnectedContinuesIfReceivesNotifyWithoutCallback
[MISSING] GoogleTest Test ClientConnectionTest:ConnectedReceivesNotifyInCallback
[MISSING] GoogleTest Test ClientConnectionTest:ConnectedContinuesIfReceivesPingWithoutCallback
[MISSING] GoogleTest Test ClientConnectionTest:ConnectedReceivesPingInCallback
[MISSING] GoogleTest Test UnixDomainServerTest:NonRunningServers
[MISSING] GoogleTest Test UnixDomainServerTest:RunningServersWithNoConnections
[MISSING] GoogleTest Test UnixDomainServerTest:RunningServersWithSameId
[MISSING] GoogleTest Test UnixDomain/ServerToClientTestFixtureUnix:RefusingServerStartingFirst/0
Derived from:
missing up reference
Source: score/message_passing/unix_domain_server_to_client_test.cpp:337
[MISSING] GoogleTest Test UnixDomain/ServerToClientTestFixtureUnix:RefusingServerStartingFirst/1
Derived from:
missing up reference
Source: score/message_passing/unix_domain_server_to_client_test.cpp:337
[MISSING] GoogleTest Test UnixDomain/ServerToClientTestFixtureUnix:RefusingServerStartingLater/0
Derived from:
missing up reference
Source: score/message_passing/unix_domain_server_to_client_test.cpp:348
[MISSING] GoogleTest Test UnixDomain/ServerToClientTestFixtureUnix:RefusingServerStartingLater/1
Derived from:
missing up reference
Source: score/message_passing/unix_domain_server_to_client_test.cpp:348
[MISSING] GoogleTest Test UnixDomain/ServerToClientTestFixtureUnix:RefusingServerStartingLaterClientDeleted/0
Derived from:
missing up reference
Source: score/message_passing/unix_domain_server_to_client_test.cpp:361
[MISSING] GoogleTest Test UnixDomain/ServerToClientTestFixtureUnix:RefusingServerStartingLaterClientDeleted/1
Derived from:
missing up reference
Source: score/message_passing/unix_domain_server_to_client_test.cpp:361
[MISSING] GoogleTest Test UnixDomain/ServerToClientTestFixtureUnix:RefusingServerStartingLaterClientRestarting/0
Derived from:
missing up reference
Source: score/message_passing/unix_domain_server_to_client_test.cpp:374
[MISSING] GoogleTest Test UnixDomain/ServerToClientTestFixtureUnix:RefusingServerStartingLaterClientRestarting/1
Derived from:
missing up reference
Source: score/message_passing/unix_domain_server_to_client_test.cpp:374
[MISSING] GoogleTest Test UnixDomain/ServerToClientTestFixtureUnix:EchoServerStartingLaterForcedStop/0
Derived from:
missing up reference
Source: score/message_passing/unix_domain_server_to_client_test.cpp:388
[MISSING] GoogleTest Test UnixDomain/ServerToClientTestFixtureUnix:EchoServerStartingLaterForcedStop/1
Derived from:
missing up reference
Source: score/message_passing/unix_domain_server_to_client_test.cpp:388
[MISSING] GoogleTest Test UnixDomain/ServerToClientTestFixtureUnix:EchoServerSetup/0
Derived from:
missing up reference
Source: score/message_passing/unix_domain_server_to_client_test.cpp:405
[MISSING] GoogleTest Test UnixDomain/ServerToClientTestFixtureUnix:EchoServerSetup/1
Derived from:
missing up reference
Source: score/message_passing/unix_domain_server_to_client_test.cpp:405
[MISSING] GoogleTest Test UnixDomain/ServerToClientTestFixtureUnix:EchoServerClientRestart/0
Derived from:
missing up reference
Source: score/message_passing/unix_domain_server_to_client_test.cpp:415
[MISSING] GoogleTest Test UnixDomain/ServerToClientTestFixtureUnix:EchoServerClientRestart/1
Derived from:
missing up reference
Source: score/message_passing/unix_domain_server_to_client_test.cpp:415
[OK] GoogleTest Test ClientConnectionTest:SuccessfullyConnectingAtFirstAttemptThenFirstReadDisconnected
- Given:
client connection established successfully
- When:
protocol receive returns
EPIPE- Then:
connection stops with reason
kClosedByPeer
Derived from:
Source: score/message_passing/client_connection_test.cpp:573
[OK] GoogleTest Test ClientConnectionTest:SuccessfullyConnectingAtFirstAttemptThenSpuriousReadGetsIgnored
- Given:
client connection established successfully
- When:
protocol receive returns
EAGAIN(spurious wake-up)- Then:
connection remains in
kReadystate
Derived from:
Source: score/message_passing/client_connection_test.cpp:591
[OK] GoogleTest Test ClientConnectionTest:NotConnectedSendNotReady
- Given:
client connection not yet connected
- When:
Send,SendWaitReply, orSendWithCallbackis called- Then:
each call returns
EINVAL
Derived from:
Source: score/message_passing/client_connection_test.cpp:607
[OK] GoogleTest Test ClientConnectionTest:GivenTrulyAsyncWhenSendIsCalledItIsQueued
- Given:
truly-async client connection with send queue capacity of 2
- When:
three
Sendcalls are made before the queue is flushed- Then:
first two succeed, third returns
ENOBUFS
Derived from:
Source: score/message_passing/client_connection_test.cpp:699
[OK] GoogleTest Test ClientConnectionTest:SendIsNotQueuedIfTrulyAsyncButNoSlots
- Given:
truly-async client connection with send queue capacity of 0
- When:
Sendis called- Then:
call returns
ENOBUFS
Derived from:
Source: score/message_passing/client_connection_test.cpp:736
[OK] GoogleTest Test ClientConnectionTest:SendWaitReplyFailsWhenCalledInCallback
- Given:
client connection established and a callback is executing on the callback thread
- When:
SendWaitReplyis called from within the callback- Then:
call returns
EAGAIN
Derived from:
Source: score/message_passing/client_connection_test.cpp:756
[OK] GoogleTest Test ClientConnectionTest:SendWaitReplyFailsWhenCannotSendMessageDirectly
- Given:
client connection established
- When:
SendWaitReplyis called butSendProtocolMessagereturnsEPIPE- Then:
SendWaitReplyreturnsEPIPE
Derived from:
Source: score/message_passing/client_connection_test.cpp:778
[OK] GoogleTest Test ClientConnectionTest:SendWaitReplyFailsDirectlyButUnblocksQueue
- Given:
truly-async client connection with a message already queued
- When:
SendWaitReplyfails immediately withEPIPE- Then:
queued send is unblocked and dispatched via the next queue command
Derived from:
Source: score/message_passing/client_connection_test.cpp:801
[OK] GoogleTest Test ClientConnectionTest:SendWaitReplyFailsWhenCannotQueueMessage
- Given:
truly-async client connection with one send queue slot already occupied
- When:
SendWaitReplyis called- Then:
call returns
ENOBUFS
Derived from:
Source: score/message_passing/client_connection_test.cpp:834
[OK] GoogleTest Test ClientConnectionTest:SendWaitReplyFailsWhenQueuedMessageCancels
- Given:
truly-async client connection with a
SendWaitReplyblocked waiting for a reply- When:
connection is stopped before the server sends the reply
- Then:
SendWaitReplyreturnsEPIPE
Derived from:
Source: score/message_passing/client_connection_test.cpp:865
[OK] GoogleTest Test ClientConnectionTest:SendWithCallbackFailsWhenCannotSendMessageDirectly
- Given:
client connection established
- When:
SendWithCallbackis called butSendProtocolMessagereturnsEPIPE- Then:
SendWithCallbackreturnsEPIPE
Derived from:
Source: score/message_passing/client_connection_test.cpp:933
[OK] GoogleTest Test ClientConnectionTest:SendWithCallbackFailsWhenCannotQueueMessage
- Given:
client connection with no async reply slots and no send queue slots
- When:
SendWithCallbackis called a second time while the first reply is still pending- Then:
second call returns
ENOBUFS
Derived from:
Source: score/message_passing/client_connection_test.cpp:955
[OK] GoogleTest Test ClientConnectionTest:SendWithCallbackFailsWhenCannotQueueMessageTrulyAsync
- Given:
truly-async client connection with no async reply slots and no send queue slots
- When:
SendWithCallbackis called- Then:
call immediately returns
ENOBUFS
Derived from:
Source: score/message_passing/client_connection_test.cpp:984
[OK] GoogleTest Test ClientConnectionTest:SendWithCallbackReportsFailureWhenQueuedSendFailsTrulyAsync
- Given:
truly-async client connection with one async reply slot and a send queued for dispatch
- When:
the queued send dispatches but
SendProtocolMessagereturnsEPIPE- Then:
the reply callback is invoked with
EPIPE
Derived from:
Source: score/message_passing/client_connection_test.cpp:1006
[OK] GoogleTest Test ClientConnectionTest:SendWithCallbackStillHasItsSlotBusyWhenQueuedSendHappensTrulyAsync
- Given:
truly-async client connection with one async reply slot busy with a pending
SendWithCallback- When:
queued send dispatches and a second
SendWithCallbackis attempted concurrently- Then:
second
SendWithCallbackreturnsENOBUFSpreventing concurrent slot reuse
Derived from:
Source: score/message_passing/client_connection_test.cpp:1038
[OK] GoogleTest Test ClientConnectionTest:QueuedSendsCancelIfConnectionClosed
- Given:
truly-async client connection with queued sends and a
SendWaitReplypending reply- When:
connection is stopped before any reply is received
- Then:
all pending callbacks and
SendWaitReplyreceiveEPIPE
Derived from:
Source: score/message_passing/client_connection_test.cpp:1078
[OK] GoogleTest Test ClientConnectionTest:ConnectedStopsIfReceivesIoError
- Given:
client connection established
- When:
protocol receive returns
EIO- Then:
connection stops with reason
kIoError
Derived from:
Source: score/message_passing/client_connection_test.cpp:1125
[OK] GoogleTest Test ClientConnectionTest:ConnectedStopsIfReceivesInvalidCode
- Given:
client connection established
- When:
protocol receive returns an unrecognised message code
- Then:
connection stops with reason
kIoError
Derived from:
Source: score/message_passing/client_connection_test.cpp:1143
[OK] GoogleTest Test ClientConnectionTest:ConnectedStopsIfReceivesReplyWithoutSend
- Given:
client connection established with no pending
SendWaitReply- When:
a
REPLYmessage arrives unexpectedly- Then:
connection stops with reason
kIoError
Derived from:
Source: score/message_passing/client_connection_test.cpp:1161