Unit Test#

Coverage: 38.7% (29 of 75 items OK)

[MISSING] GoogleTest Test ClientConnectionTest:Constructed

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:346

[MISSING] GoogleTest Test ClientConnectionTest:ConstructedStopDoesNothing

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:353

[MISSING] GoogleTest Test ClientConnectionTest:TryingToConnectOnceStoppingWhileConnecting

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:361

[MISSING] GoogleTest Test ClientConnectionTest:TryingToSyncConnectOnceStoppingWhileConnecting

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:382

[MISSING] GoogleTest Test ClientConnectionTest:TryingToConnectOnceStoppingOnHardError

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:400

[MISSING] GoogleTest Test ClientConnectionTest:TryingToSyncConnectOnceStoppingOnHardError
:Given: a synchronous first connection attempt fails with a terminal open error
:When: Start schedules finalization and the engine executes that command
:Then: one engine-context cleanup completes the ordered starting, stopping, and stopped callbacks

Traces to:

  • unknown tracing target req MessagePassing.ClientConnectionMaintainsStateMachine MessagePassing.ClientConnectionStateCallbackInvocation


Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:422

[MISSING] GoogleTest Test ClientConnectionTest:SyncConnectFailureMayFinalizeBeforeStartReturns
:Given: synchronous connection failure with immediately executed engine cleanup
:When: the engine finishes queued cleanup before Start returns
:Then: ordered callbacks and cleanup complete without requiring a stopping snapshot

Traces to:

  • unknown tracing target req MessagePassing.ClientConnectionMaintainsStateMachine MessagePassing.ClientConnectionStateCallbackInvocation


Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:464

[MISSING] GoogleTest Test ClientConnectionTest:TryingToConnectMultipleTimesStoppingOnPermissionError

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:512

[MISSING] GoogleTest Test ClientConnectionTest:TryingToSyncConnectMultipleTimesStoppingOnPermissionError

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:542

[MISSING] GoogleTest Test ClientConnectionTest:TryingToConnectMultipleTimesFinallyConnectingAndImplicitlyStopping

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:573

[MISSING] GoogleTest Test ClientConnectionTest:SuccessfullyConnectingAtFirstAttemptThenExplicitlyStopping

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:601

[MISSING] GoogleTest Test ClientConnectionTest:SuccessfullyConnectingAtFirstAttemptWithDelayThenExplicitlyStopping

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:609

[MISSING] GoogleTest Test ClientConnectionTest:SuccessfullySyncConnectingAtFirstAttemptThenExplicitlyStopping

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:631

[MISSING] GoogleTest Test ClientConnectionTest:SuccessfullyConnectingAtFirstAttemptThenExplicitlyStoppingAsIfFromCallback

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:640

[MISSING] GoogleTest Test ClientConnectionTest:SuccessfullySyncConnectingAtFirstAttemptThenExplicitlyStoppingAsIfFromCallback

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:648

[MISSING] GoogleTest Test ClientConnectionTest:ReadyStateCallbackCanStopConnection
:Given: connection whose ready-state callback requests Stop
:When: the engine establishes the connection and invokes the ready-state callback
:Then: stopping and stopped callbacks complete before the ready-state callback returns

Traces to:

  • unknown tracing target req MessagePassing.ClientConnectionMaintainsStateMachine MessagePassing.ClientConnectionStateCallbackInvocation


Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:657

[MISSING] GoogleTest Test ClientConnectionTest:StoppedStateCallbackCanRestartConnection
:Given: ready connection whose first stopped-state callback requests Restart
:When: queued stop cleanup invokes the stopped-state callback
:Then: restart enters Starting before the stopped-state callback returns and can reconnect

Traces to:

  • unknown tracing target req MessagePassing.ClientConnectionMaintainsStateMachine MessagePassing.ClientConnectionStateCallbackInvocation


Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:695

[MISSING] GoogleTest Test ClientConnectionTest:StoppedStateCallbackKeepsOwnedCaptureAliveDuringDestruction
:Given: stopped-state callback owning a capture and destroying its connection
:When: queued stop cleanup invokes the stopped-state callback
:Then: the connection is destroyed but its callback capture survives until callback return

Traces to:

  • unknown tracing target req MessagePassing.ClientConnectionMaintainsStateMachine MessagePassing.ClientConnectionStateCallbackInvocation


Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:736

[MISSING] GoogleTest Test ClientConnectionTest:ConcurrentStopRequestsFinalizeOnce
:Given: ready connection with registered state callbacks
:When: two application threads request Stop before queued cleanup executes
:Then: one cleanup and one stopped-state callback occur, and further Stop calls are no-ops

Traces to:

  • unknown tracing target req MessagePassing.ClientConnectionMaintainsStateMachine MessagePassing.ClientConnectionStateCallbackInvocation


Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:771

[MISSING] GoogleTest Test ClientConnectionTest:ConnectedRestartdDoesNothing

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:883

[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:894

[MISSING] GoogleTest Test ClientConnectionTest:SendIsDirectWithOurDefaultConfig

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:922

[MISSING] GoogleTest Test ClientConnectionTest:SendIsDirectWithFullyOrderedAndEmptyQueue

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:936

[MISSING] GoogleTest Test ClientConnectionTest:GivenQueuedSends_WhenStoppedAndRestarted_ExpectSendCapacityRestored

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:988

[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: ``SendWaitReply`` returns ``EMSGSIZE``

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:1614

[MISSING] GoogleTest Test ClientConnectionTest:ConnectedContinuesIfReceivesNotifyWithoutCallback

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:1908

[MISSING] GoogleTest Test ClientConnectionTest:ConnectedReceivesNotifyInCallback

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:1920

[MISSING] GoogleTest Test ClientConnectionTest:ConnectedContinuesIfReceivesPingWithoutCallback

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:1936

[MISSING] GoogleTest Test ClientConnectionTest:ConnectedReceivesPingInCallback

Derived from:

  • missing up reference


Source: score/message_passing/client_connection_test.cpp:1947

[MISSING] GoogleTest Test UnixDomainServerTest:NonRunningServers

Derived from:

  • missing up reference


Source: score/message_passing/unix_domain_server_test.cpp:52

[MISSING] GoogleTest Test UnixDomainServerTest:RunningServersWithNoConnections

Derived from:

  • missing up reference


Source: score/message_passing/unix_domain_server_test.cpp:70

[MISSING] GoogleTest Test UnixDomainServerTest:RunningServersWithSameId

Derived from:

  • missing up reference


Source: score/message_passing/unix_domain_server_test.cpp:94

[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:825

[OK] GoogleTest Test ClientConnectionTest:SuccessfullyConnectingAtFirstAttemptThenSpuriousReadGetsIgnored
:Given: client connection established successfully
:When: protocol receive returns ``EAGAIN`` (spurious wake-up)
:Then: connection remains in ``kReady`` state

Derived from:


Source: score/message_passing/client_connection_test.cpp:843

[OK] GoogleTest Test ClientConnectionTest:NotConnectedSendNotReady
:Given: client connection not yet connected
:When: ``Send``, ``SendWaitReply``, or ``SendWithCallback`` is called
:Then: each call returns ``EINVAL``

Derived from:


Source: score/message_passing/client_connection_test.cpp:859

[OK] GoogleTest Test ClientConnectionTest:GivenTrulyAsyncWhenSendIsCalledItIsQueued
:Given: truly-async client connection with send queue capacity of 2
:When: three ``Send`` calls are made before the queue is flushed
:Then: first two succeed, third returns ``ENOBUFS``

Derived from:


Source: score/message_passing/client_connection_test.cpp:951

[OK] GoogleTest Test ClientConnectionTest:SendIsNotQueuedIfTrulyAsyncButNoSlots
:Given: truly-async client connection with send queue capacity of 0
:When: ``Send`` is called
:Then: call returns ``ENOBUFS``

Derived from:


Source: score/message_passing/client_connection_test.cpp:1036

[OK] GoogleTest Test ClientConnectionTest:SendWaitReplyFailsWhenCalledInCallback
:Given: client connection established and a callback is executing on the callback thread
:When: ``SendWaitReply`` is called from within the callback
:Then: call returns ``EAGAIN``

Derived from:


Source: score/message_passing/client_connection_test.cpp:1056

[OK] GoogleTest Test ClientConnectionTest:SendWaitReplyFailsWhenCannotSendMessageDirectly
:Given: client connection established
:When: ``SendWaitReply`` is called but ``SendProtocolMessage`` returns ``EPIPE``
:Then: ``SendWaitReply`` returns ``EPIPE``

Derived from:


Source: score/message_passing/client_connection_test.cpp:1078

[OK] GoogleTest Test ClientConnectionTest:SendWaitReplyFailsDirectlyButUnblocksQueue
:Given: truly-async client connection with a message already queued
:When: ``SendWaitReply`` fails immediately with ``EPIPE``
:Then: queued send is unblocked and dispatched via the next queue command

Derived from:


Source: score/message_passing/client_connection_test.cpp:1101

[OK] GoogleTest Test ClientConnectionTest:QueuedAdmissionsArmOnceAndPreservePendingReply
:Given: a truly asynchronous connection with room for two queued messages
:When: messages queue behind the scheduled drain and then behind its pending request
:Then: queued messages share one drain command, the reply completes once, and idle admission can arm again

Derived from:


Source: score/message_passing/client_connection_test.cpp:1134

[OK] GoogleTest Test ClientConnectionTest:SendWaitReplyDirectErrorPreservesQueuedRequestCallback
:Given: a request is queued while a direct SendWaitReply transport is in progress
:When: the direct transport fails with EPIPE and the queued request later receives a reply
:Then: the queued request callback completes exactly once and is not cancelled on stop

Derived from:


Source: score/message_passing/client_connection_test.cpp:1180

[OK] GoogleTest Test ClientConnectionTest:SendWaitReplyStopDefersCloseAndRestartUntilTransportReturns
:Given: a synchronous-first connection with a direct request in transport
:When: stopping and restarting are requested before the old transport returns EPIPE
:Then: closure and restart are deferred until old send termination completes

Derived from:


Source: score/message_passing/client_connection_test.cpp:1226

[OK] GoogleTest Test ClientConnectionTest:DirectSendsAllowQueuedAdmissionWhileTransportIsDelayed
:Given: a fully ordered direct send paused in transport
:When: another thread submits a send before the direct transport is released
:Then: queue admission completes during IPC and ordered dispatch follows it

Derived from:


Source: score/message_passing/client_connection_test.cpp:1278

[OK] GoogleTest Test ClientConnectionTest:SendStopDefersCloseUntilTransportReturns
:Given: a direct one-way send in transport
:When: stop cleanup executes before the one-way transport returns
:Then: the descriptor closes exactly once after the admitted send completes

Derived from:


Source: score/message_passing/client_connection_test.cpp:1341

[OK] GoogleTest Test ClientConnectionTest:SendWithCallbackStopCompletesOnceBeforeTransportReturns
:Given: a direct callback request in transport
:When: stop cancels the callback before a successful or failed transport return
:Then: the accepted request receives one cancellation and no late slot change

Derived from:


Source: score/message_passing/client_connection_test.cpp:1372

[OK] GoogleTest Test ClientConnectionTest:QueuedRequestStopPreservesActiveSendBufferAndPoolCapacity
:Given: a queued request borrowing a send node while another send remains queued
:When: stop cancels pending callbacks during queued request IPC
:Then: active data stays valid and both preallocated send nodes are reusable

Derived from:


Source: score/message_passing/client_connection_test.cpp:1410

[OK] GoogleTest Test ClientConnectionTest:SendWithCallbackEarlyReplyPreservesLaterRequestOnLateTransportError
:Given: a direct request whose reply arrives before transport returns
:When: the reply starts a later request and the old transport then reports EPIPE
:Then: old recovery preserves the later callback and its exactly-once completion

Derived from:


Source: score/message_passing/client_connection_test.cpp:1459

[OK] GoogleTest Test ClientConnectionTest:CloseRunsOutsideSendMutexAndBeforeStoppedPublication
:Given: a ready connection with a close operation that calls back into its API
:When: stop reaches descriptor closure
:Then: send admission remains responsive and stopped is published after close

Derived from:


Source: score/message_passing/client_connection_test.cpp:1511

[OK] GoogleTest Test ClientConnectionTest:SendWaitReplyFailsWhenCannotQueueMessage
:Given: truly-async client connection with one send queue slot already occupied
:When: ``SendWaitReply`` is called
:Then: call returns ``ENOBUFS``

Derived from:


Source: score/message_passing/client_connection_test.cpp:1543

[OK] GoogleTest Test ClientConnectionTest:SendWaitReplyFailsWhenQueuedMessageCancels
:Given: truly-async client connection with a ``SendWaitReply`` blocked waiting for a reply
:When: connection is stopped before the server sends the reply
:Then: ``SendWaitReply`` returns ``EPIPE``

Derived from:


Source: score/message_passing/client_connection_test.cpp:1574

[OK] GoogleTest Test ClientConnectionTest:SendWithCallbackFailsWhenCannotSendMessageDirectly
:Given: client connection established
:When: ``SendWithCallback`` is called but ``SendProtocolMessage`` returns ``EPIPE``
:Then: ``SendWithCallback`` returns ``EPIPE``

Derived from:


Source: score/message_passing/client_connection_test.cpp:1640

[OK] GoogleTest Test ClientConnectionTest:SendWithCallbackFailsWhenCannotQueueMessage
:Given: client connection with no async reply slots and no send queue slots
:When: ``SendWithCallback`` is 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:1662

[OK] GoogleTest Test ClientConnectionTest:SendWithCallbackFailsWhenCannotQueueMessageTrulyAsync
:Given: truly-async client connection with no async reply slots and no send queue slots
:When: ``SendWithCallback`` is called
:Then: call immediately returns ``ENOBUFS``

Derived from:


Source: score/message_passing/client_connection_test.cpp:1691

[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 ``SendProtocolMessage`` returns ``EPIPE``
:Then: the reply callback is invoked with ``EPIPE``

Derived from:


Source: score/message_passing/client_connection_test.cpp:1713

[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 ``SendWithCallback`` is attempted concurrently
:Then: second ``SendWithCallback`` returns ``ENOBUFS`` preventing concurrent slot reuse

Derived from:


Source: score/message_passing/client_connection_test.cpp:1745

[OK] GoogleTest Test ClientConnectionTest:QueuedSendsCancelIfConnectionClosed
:Given: truly-async client connection with queued sends and a ``SendWaitReply`` pending reply
:When: connection is stopped before any reply is received
:Then: all pending callbacks and ``SendWaitReply`` receive ``EPIPE``

Derived from:


Source: score/message_passing/client_connection_test.cpp:1785

[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:1831

[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:1849

[OK] GoogleTest Test ClientConnectionTest:ConnectedStopsIfReceivesReplyWithoutSend
:Given: client connection established with no pending ``SendWaitReply``
:When: a ``REPLY`` message arrives unexpectedly
:Then: connection stops with reason ``kIoError``

Derived from:


Source: score/message_passing/client_connection_test.cpp:1867

[OK] GoogleTest Test ClientConnectionTest:ReplyDuringDrainMarkerStopsWithoutInvokingEmptyCallback
:Given: an armed queue command with an empty reply-slot drain marker
:When: a reply is delivered before the queue command runs
:Then: the unexpected reply stops the connection with an IO error

Derived from:


Source: score/message_passing/client_connection_test.cpp:1885