Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
472 0 0 0 100% 223.3 s

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
com.github.copilot.sdk 472 0 0 0 100% 223.3 s

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

com.github.copilot.sdk

- Class Tests Errors Failures Skipped Success Rate Time
MessageAttachmentTest 12 0 0 0 100% 0.026 s
ExecutorWiringTest 6 0 0 0 100% 10.76 s
SkillsTest 2 0 0 0 100% 4.365 s
ToolsTest 7 0 0 0 100% 13.47 s
RpcHandlerDispatcherTest 24 0 0 0 100% 0.134 s
PermissionRequestResultKindTest 14 0 0 0 100% 0.018 s
CliServerManagerTest 18 0 0 0 100% 0.080 s
SchedulerShutdownRaceTest 1 0 0 0 100% 0.013 s
LifecycleEventManagerTest 12 0 0 0 100% 0.036 s
CopilotClientTest 33 0 0 0 100% 35.54 s
MetadataApiTest 11 0 0 0 100% 4.191 s
McpAndAgentsTest 9 0 0 0 100% 14.31 s
SessionHandlerTest 21 0 0 0 100% 0.094 s
ClosedSessionGuardTest 16 0 0 0 100% 18.88 s
ErrorHandlingTest 5 0 0 0 100% 10.22 s
StreamingFidelityTest 3 0 0 0 100% 7.856 s
PermissionsTest 9 0 0 0 100% 18.71 s
ForwardCompatibilityTest 7 0 0 0 100% 0.006 s
CompactionTest 2 0 0 0 100% 5.440 s
TimeoutEdgeCaseTest 2 0 0 0 100% 10.22 s
SessionEventsE2ETest 6 0 0 0 100% 11.78 s
ConfigCloneTest 11 0 0 0 100% 0.007 s
ZeroTimeoutContractTest 1 0 0 0 100% 0.872 s
CopilotSessionTest 21 0 0 0 100% 40.20 s
ProviderConfigTest 23 0 0 0 100% 0.031 s
AskUserTest 3 0 0 0 100% 6.205 s
ToolInvocationTest 6 0 0 0 100% 0.016 s
SessionEventParserTest 104 0 0 0 100% 0.153 s
DocumentationSamplesTest 1 0 0 0 100% 0.031 s
SessionEventHandlingTest 29 0 0 0 100% 0.059 s
SessionRequestBuilderTest 26 0 0 0 100% 0.027 s
JsonRpcClientTest 23 0 0 0 100% 1.353 s
HooksTest 4 0 0 0 100% 8.206 s

Test Cases

[Summary] [Package List] [Test Cases]

MessageAttachmentTest

setAttachmentsAcceptsListOfBlobAttachment 0.003 s
sendMessageRequestAcceptsMessageAttachmentList 0 s
blobAttachmentImplementsMessageAttachment 0 s
setAttachmentsHandlesNull 0 s
serializeBlobAttachmentIncludesType 0.003 s
getAttachmentsReturnsUnmodifiableList 0.001 s
setAttachmentsAcceptsMixedList 0 s
setAttachmentsAcceptsListOfAttachment 0.001 s
attachmentImplementsMessageAttachment 0 s
serializeAttachmentIncludesType 0.002 s
serializeMessageOptionsWithMixedAttachments 0.005 s
cloneMessageOptionsPreservesAttachments 0 s

ExecutorWiringTest

testUserInputDispatchUsesProvidedExecutor 1.960 s
testToolCallDispatchUsesProvidedExecutor 1.930 s
testHooksDispatchUsesProvidedExecutor 1.912 s
testPermissionDispatchUsesProvidedExecutor 2.018 s
testClientStopUsesProvidedExecutor 1.153 s
testClientStartUsesProvidedExecutor 1.109 s

SkillsTest

testShouldLoadAndApplySkillFromSkillDirectories 1.920 s
testShouldNotApplySkillWhenDisabledViaDisabledSkills 1.845 s

ToolsTest

testInvokesCustomTool(TestInfo) 1.863 s
testOverridesBuiltInToolWithCustomTool 1.869 s
testCanReceiveAndReturnComplexTypes(TestInfo) 1.839 s
testInvokesBuiltInTools(TestInfo) 1.850 s
testInvokesCustomToolWithPermissionHandler(TestInfo) 1.846 s
testDeniesCustomToolWhenPermissionDenied(TestInfo) 1.785 s
testHandlesToolCallingErrors(TestInfo) 1.817 s

RpcHandlerDispatcherTest

userInputRequestWithUnknownSession 0.011 s
lifecycleEventWithoutMetadata 0.001 s
userInputRequestWithNullChoicesAndFreeform 0.003 s
userInputRequestHandlerFails 0.007 s
toolCallWithUnknownTool 0.004 s
toolCallWithUnknownSession 0.002 s
lifecycleEventWithNullMetadata 0.001 s
permissionRequestWithUnknownSession 0.003 s
permissionRequestV2RejectsNoResult 0.004 s
hooksInvokeWithNonNullOutput 0.003 s
hooksInvokeWithUnknownSession 0.001 s
hooksInvokeWithNoHooksRegistered 0.002 s
permissionRequestWithHandler 0.002 s
userInputRequestWithNullAnswer 0.002 s
lifecycleEventWithMissingTypeAndSessionId 0.001 s
sessionEventWithUnknownSession 0.003 s
hooksInvokeWithNullOutput 0.001 s
hooksInvokeHandlerFails 0.003 s
toolCallHandlerFails 0.003 s
sessionEventWithNullEventNode 0.052 s
permissionRequestHandlerFails 0.005 s
toolCallWithNonStringResult 0.002 s
toolCallReturnsToolResultObjectDirectly 0.003 s
userInputRequestWithNoHandler 0.003 s

PermissionRequestResultKindTest

permissionRequestResult_setKindWithString_backwardCompatible 0.001 s
constructor_nullValue_treatedAsEmpty 0 s
hashCode_isCaseInsensitive 0 s
equals_sameValue_returnsTrue 0.005 s
equals_isCaseInsensitive 0.001 s
toString_returnsValue 0 s
equals_nonKindObject_returnsFalse 0 s
permissionRequestResult_setKindWithKindType 0.001 s
jsonDeserialize_readsStringValue 0.002 s
equals_differentValue_returnsFalse 0 s
jsonRoundTrip_allWellKnownKinds 0.002 s
jsonSerialize_writesStringValue 0.001 s
wellKnownKinds_haveExpectedValues 0 s
customValue_isPreserved 0 s

CliServerManagerTest

startCliServerWithJsFile 0.005 s
startCliServerWithGitHubToken 0.006 s
processInfoWithNullPort 0.002 s
connectToServerNoProcessNoHost 0.001 s
startCliServerWithGitHubTokenAndNoExplicitUseLoggedInUser 0.003 s
processInfoRecord 0.002 s
parseCliUrlWithHostColonPort 0.002 s
startCliServerWithExplicitPort 0.003 s
parseCliUrlWithHostOnly 0 s
connectToServerTcpMode 0.003 s
startCliServerWithNullCliPath 0.004 s
parseCliUrlWithPortNumber 0.002 s
startCliServerWithCliArgs 0.012 s
startCliServerWithUseLoggedInUserExplicit 0.004 s
parseCliUrlWithHttpPrefix 0.002 s
parseCliUrlWithHttpsPrefix 0.003 s
connectToServerStdioMode 0.006 s
connectToServerNullHostNonNullPort 0.003 s

SchedulerShutdownRaceTest

sendAndWaitShouldReturnFailedFutureWhenSchedulerIsShutDown 0.012 s

LifecycleEventManagerTest

wildcardHandlerExceptionDoesNotPreventOtherHandlers 0.002 s
wildcardHandlerReceivesAllEvents 0.001 s
typedAndWildcardErrorsDoNotAffectEachOther 0.007 s
bothTypedAndWildcardReceiveEvent 0.003 s
typedUnsubscribeStopsDelivery 0.001 s
typedHandlerExceptionDoesNotPreventOtherHandlers 0.002 s
typedHandlerReceivesOnlyMatchingEvents 0.001 s
multipleTypedHandlersAllReceive 0.001 s
multipleWildcardHandlersAllReceive 0.002 s
dispatchWithNoTypedMatchDoesNotThrow 0.001 s
dispatchWithNoHandlersDoesNotThrow 0 s
wildcardUnsubscribeStopsDelivery 0.001 s

CopilotClientTest

testForceStopWithoutCleanup 1.508 s
testOnLifecycleUnsubscribeStopsDelivery 0.005 s
testOnLifecycleWildcardReceivesAllEvents 0.005 s
testShouldReportErrorWithStderrWhenCliFailsToStart 30.01 s
testStartIsIdempotentSingleConnectionAttempt 0.003 s
testStartAndConnectUsingTcp 1.202 s
testCliUrlAutoCorrectsUseStdio 0.001 s
testOnLifecycleTypedReceivesOnlyMatchingEvents 0.002 s
testStopWithNoConnectionCompletes 0.001 s
testListModels_WithCustomHandler_CallsHandler 0.005 s
testUseLoggedInUserWithCliUrlThrows 0.002 s
testNullOptionsDefaultsToEmpty 0.001 s
testOnLifecycleMultipleHandlers 0.001 s
testStartAndConnectUsingStdio 1.122 s
testExplicitUseLoggedInUserFalse 0.001 s
testGitHubTokenOptionAccepted 0.001 s
testEnsureConnectedThrowsWhenNotStartedAndAutoStartDisabled 0.002 s
testCliUrlOnlyConstruction 0.001 s
testGitHubTokenWithCliUrlThrows 0.001 s
testExplicitUseLoggedInUserTrueWithGitHubToken 0 s
testUseLoggedInUserDefaultsToNull 0.001 s
testListModels_WithCustomHandler_WorksWithoutStart 0.001 s
testGetStateErrorAfterFailedStart 0.003 s
testCloseIsIdempotent 0.001 s
testForceStopWithNoConnectionCompletes 0.001 s
testListModels_WithCustomHandler_CachesResults 0.001 s
testClientConstruction 0.001 s
testCloseAfterFailedStart 0.003 s
testGetStateConnectingDuringStart 0.004 s
testCliUrlMutualExclusionWithCliPath 0.001 s
testOnLifecycleTypedUnsubscribeStopsDelivery 0.001 s
testClientConstructionWithOptions 0.001 s
testCloseSessionAfterStoppingClientDoesNotThrow 1.603 s

MetadataApiTest

testProtocolVersionIsThree 0.004 s
testGetAuthStatusResponseNotAuthenticated 0.009 s
testGetStatusResponseDeserialization 0.006 s
testToolExecutionProgressEventParsing 0.003 s
testGetAuthStatus 1.479 s
testListModels 1.546 s
testGetModelsResponseDeserialization 0.010 s
testModelInfoDeserialization 0.005 s
testToolExecutionProgressEventType 0 s
testGetStatus 1.111 s
testGetAuthStatusResponseDeserialization 0.001 s

McpAndAgentsTest

testShouldAcceptMcpServerConfigurationOnSessionResume 1.942 s
testShouldHandleMultipleMcpServers 1.124 s
testShouldAcceptMultipleCustomAgents 1.121 s
testShouldAcceptCustomAgentConfigurationOnSessionCreate 1.792 s
testShouldAcceptCustomAgentWithMcpServers 1.129 s
testShouldAcceptCustomAgentConfigurationOnSessionResume 1.868 s
testShouldAcceptCustomAgentWithToolsConfiguration 1.112 s
testShouldAcceptBothMcpServersAndCustomAgents 1.814 s
testShouldAcceptMcpServerConfigurationOnSessionCreate 1.801 s

SessionHandlerTest

testHandleHooksInvokeSessionEnd 0.008 s
testHandleHooksInvokeUnhandledHookType 0.001 s
testHandleHooksInvokeNullCallbackReturnsNull 0.002 s
testSetEventErrorPolicySetsValue 0 s
testRegisterToolsNullIsSafe 0.001 s
testHandleHooksInvokeSessionStart 0.004 s
testHandlePermissionRequestHandlerExceptionReturnsDenied 0.003 s
testHandleUserInputRequestHandlerSucceeds 0.003 s
testHandlePermissionRequestWithNoHandlerReturnsDenied 0 s
testHandleUserInputRequestHandlerFutureFails 0.005 s
testHandleHooksInvokeNoHooksReturnsNull 0.001 s
testRegisterToolsEmptyListClearsTools 0.002 s
testSetEventErrorPolicyNullThrowsNPE 0.004 s
testHandleHooksInvokeHandlerThrows 0.005 s
testHandlePermissionRequestNoResultPassesThrough 0.002 s
testHandlePermissionRequestHandlerSucceeds 0.002 s
testHandleUserInputRequestHandlerThrowsSynchronously 0.005 s
testHandleHooksInvokeUserPromptSubmitted 0.006 s
testHandleHooksInvokeInvalidJsonFails 0.011 s
testHandleUserInputRequestNoHandler 0.002 s
testHandlePermissionRequestHandlerFutureFailsReturnsDenied 0.002 s

ClosedSessionGuardTest

testSendAndWaitOptionsThrowsAfterTermination 1.156 s
testSetEventErrorPolicyThrowsAfterTermination 1.135 s
testOnConsumerThrowsAfterTermination 1.163 s
testSendAndWaitWithTimeoutThrowsAfterTermination 1.134 s
testGetSessionIdWorksAfterTermination 1.180 s
testSendStringThrowsAfterTermination 1.150 s
testSendAndWaitStringThrowsAfterTermination 1.144 s
testAbortThrowsAfterTermination 1.160 s
testGetMessagesThrowsAfterTermination 1.135 s
testOnTypedConsumerThrowsAfterTermination 1.131 s
testSetModelThrowsAfterTermination 1.138 s
testSetEventErrorHandlerThrowsAfterTermination 1.130 s
testCloseIsIdempotent 1.150 s
testSendOptionsThrowsAfterTermination 1.125 s
testGetWorkspacePathWorksAfterTermination 1.113 s
testTryWithResourcesDoubleClose 1.126 s

ErrorHandlingTest

testPermissionHandlerErrors_sessionErrorEventContainsDetails 1.874 s
testHandlesToolCallingErrors_sessionContinuesAfterToolError 1.871 s
testHandlesToolCallingErrors_toolReturnsFailureResult 1.940 s
testHandlesToolCallingErrors_toolErrorDoesNotCrashSession 1.930 s
testShouldHandlePermissionHandlerErrorsGracefully_deniesPermission 1.991 s

StreamingFidelityTest

testShouldNotProduceDeltasWhenStreamingIsDisabled 1.823 s
testShouldProduceDeltaEventsWhenStreamingIsEnabled 1.822 s
testShouldProduceDeltasAfterSessionResume 3.608 s

PermissionsTest

testAsyncPermissionHandler(TestInfo) 2.249 s
testShouldHandlePermissionHandlerErrorsGracefully(TestInfo) 1.866 s
testShouldDenyToolOperationsWhenHandlerExplicitlyDenies(TestInfo) 1.851 s
testResumeSessionWithPermissionHandler(TestInfo) 2.340 s
testDenyPermission(TestInfo) 1.858 s
testShouldDenyToolOperationsWhenHandlerExplicitlyDeniesAfterResume(TestInfo) 1.901 s
testShouldWorkWithApproveAllPermissionHandler(TestInfo) 1.796 s
testPermissionHandlerForWriteOperations(TestInfo) 1.930 s
testToolCallIdInPermissionRequests(TestInfo) 2.301 s

ForwardCompatibilityTest

parse_unknownEventType_preservesOriginalType 0.001 s
parse_unknownEventType_preservesBaseMetadata 0.001 s
parse_unknownEventType_returnsUnknownSessionEvent 0 s
unknownSessionEvent_getType_returnsUnknown 0.001 s
parse_knownEventType_returnsTypedEvent 0.001 s
unknownSessionEvent_nullType_usesUnknown 0 s
unknownSessionEvent_getOriginalType_returnsOriginal 0 s

CompactionTest

testShouldTriggerCompactionWithLowThresholdAndEmitEvents 2.545 s
testShouldNotEmitCompactionEventsWhenInfiniteSessionsDisabled 1.902 s

TimeoutEdgeCaseTest

testTimeoutDoesNotFireAfterSessionClose 5.009 s
testSendAndWaitReusesTimeoutThread 5.211 s

SessionEventsE2ETest

testInvokesBuiltInTools_eventOrderDuringToolExecution 1.966 s
testShouldReceiveSessionEvents_sessionIdleAfterMessage 1.834 s
testShouldReceiveSessionEvents_assistantUsageEvent 1.839 s
testShouldReceiveSessionEvents_userMessageEvent 1.780 s
testInvokesBuiltInTools_toolExecutionCompleteEvent 1.927 s
testShouldReceiveSessionEvents_assistantTurnEvents 1.810 s

ConfigCloneTest

clonePreservesNullFields 0 s
sessionConfigAgentAndOnEventCloned 0.001 s
resumeSessionConfigCloneBasic 0 s
copilotClientOptionsCloneBasic 0 s
resumeSessionConfigAgentAndOnEventCloned 0 s
copilotClientOptionsEnvironmentIndependence 0.001 s
copilotClientOptionsOnListModelsCloned 0 s
messageOptionsCloneBasic 0 s
copilotClientOptionsArrayIndependence 0 s
sessionConfigListIndependence 0 s
sessionConfigCloneBasic 0 s

ZeroTimeoutContractTest

sendAndWaitWithZeroTimeoutShouldNotTimeOut 0.869 s

CopilotSessionTest

testShouldReceiveSessionEvents_createAndDestroy 1.138 s
testShouldListSessions 2.121 s
testShouldDeleteSession 1.816 s
testShouldGetLastSessionId 1.825 s
testSendAndWaitBlocksUntilSessionIdleAndReturnsFinalAssistantMessage 1.830 s
testSendAndWaitThrowsOnTimeout 1.828 s
testShouldAbortSession 1.886 s
testShouldCreateSessionWithAvailableTools 1.715 s
testListSessionsIncludesContextWhenAvailable 1.153 s
testShouldCreateSessionWithCustomConfigDir 1.811 s
testShouldCreateSessionWithAppendedSystemMessageConfig 1.802 s
testShouldCreateSessionWithCustomTool 1.831 s
testShouldThrowErrorWhenResumingNonExistentSession 1.085 s
testShouldHaveStatefulConversation 1.818 s
testShouldReceiveSessionEvents 1.760 s
testShouldResumeSessionUsingTheSameClient 1.818 s
testShouldCreateSessionWithExcludedTools 1.761 s
testShouldCreateSessionWithReplacedSystemMessageConfig 1.685 s
testShouldResumeSessionUsingNewClient 3.507 s
testSessionListFilterFluentAPI 1.157 s
testSendReturnsImmediatelyWhileEventsStreamInBackground 4.197 s

ProviderConfigTest

testResumeSessionConfigProviderSerialization 0.008 s
testSerializeOpenAiProvider 0.001 s
testSerializeCustomWireApi 0.001 s
testResumeSessionConfigWithProvider 0.001 s
testSessionConfigWithOpenAiProvider 0.002 s
testDeserializeBearerTokenProvider 0.002 s
testSerializeAllFields 0 s
testDeserializeAzureOpenAiProvider 0 s
testResumeSessionConfigWithoutProviderOmitsField 0 s
testRoundTripProviderConfig 0.001 s
testForwardCompatibilityIgnoresUnknownFields 0.001 s
testSerializeEmptyAzureOptionsOmitsAllFields 0.001 s
testSerializeEmptyProviderOmitsAllFields 0.001 s
testAzureOptionsFluentSetter 0 s
testDefaultsAreNull 0 s
testSessionConfigWithoutProviderOmitsField 0 s
testFluentSettersReturnSameInstance 0.001 s
testSerializeBearerTokenProvider 0.001 s
testAzureOptionsDefaultsAreNull 0 s
testSerializeAzureOpenAiProvider 0.001 s
testGettersReturnSetValues 0.001 s
testSessionConfigWithAzureProvider 0 s
testDeserializeOpenAiProvider 0 s

AskUserTest

testShouldHandleFreeformUserInputResponse 1.912 s
testShouldReceiveChoicesInUserInputRequest 1.844 s
testShouldInvokeUserInputHandlerWhenModelUsesAskUserTool 1.855 s

ToolInvocationTest

testGetArgumentsWhenNull 0.001 s
testGetArgumentsAsWithRecord 0.003 s
testGetArgumentsAsWithPojo 0.002 s
testGetArgumentsAsThrowsOnInvalidType 0.002 s
testGetArgumentsReturnsMap 0.001 s
testGettersReturnSetValues 0 s

SessionEventParserTest

testParseJsonNodeUserMessageWithAttachment 0.001 s
testParseSessionWorkspaceFileChangedEvent 0.003 s
testParseSystemMessageEvent 0.004 s
testAssistantUsageEventWithNullQuotaSnapshots 0 s
testAssistantIntentEventAllFields 0.002 s
testSessionShutdownEventAllFields 0.010 s
testParseSessionHandoffEvent 0.004 s
testParseSessionInfoEvent 0.002 s
testParseToolExecutionCompleteEvent 0 s
testParseBaseFieldsNullWhenAbsent 0.001 s
testParseExitPlanModeCompletedEvent 0.003 s
testParseAssistantMessageEvent 0 s
testParseSessionErrorEvent 0.003 s
testSessionInfoEventAllFields 0 s
testAssistantMessageDeltaEventAllFields 0.002 s
testSubagentSelectedEventAllFields 0.003 s
testToolExecutionProgressEventAllFields 0.002 s
testParseToolExecutionStartEvent 0.001 s
testSessionErrorEventAllFields 0.001 s
testAbortEventAllFields 0.002 s
testParseEmptyJson 0.001 s
testParsePermissionCompletedEvent 0.001 s
testParseSessionCompactionStartEvent 0 s
testParseJsonNodeAssistantMessageWithFields 0 s
testParseCommandCompletedEvent 0.003 s
testParseSessionIdleEvent 0.001 s
testAssistantTurnStartEventIncludesInteractionId 0 s
testParseSessionUsageInfoEvent 0 s
testParseAssistantTurnStartEvent 0.001 s
testParseToolExecutionProgressEvent 0.001 s
testParseSessionSnapshotRewindEvent 0.003 s
testParseJsonNodeSessionShutdownWithCodeChanges 0 s
testParseAssistantReasoningDeltaEvent 0.002 s
testParseHookEndEvent 0 s
testParseSubagentFailedEvent 0.003 s
testParseAssistantIntentEvent 0.001 s
testHookEndEventWithError 0.001 s
testParseJsonNodeToolExecutionCompleteWithNestedTypes 0 s
testHookEndEventSuccess 0 s
testAssistantMessageEventAllFields 0.001 s
testToolExecutionCompleteEventWithError 0.001 s
testParseAssistantMessageDeltaEvent 0 s
testParseSessionTruncationEvent 0.003 s
testParseSessionStartEvent 0 s
testParseSessionModeChangedEvent 0.003 s
testParsePendingMessagesModifiedEvent 0.001 s
testSubagentStartedEventAllFields 0.003 s
testParseBaseFieldsTimestamp 0 s
testParseSkillInvokedEvent 0.003 s
testParseSubagentStartedEvent 0.001 s
testSessionCompactionCompleteEventAllFields 0.001 s
testToolUserRequestedEventAllFields 0.003 s
testParseBaseFieldsParentId 0 s
testParseSubagentCompletedEvent 0.003 s
testParseExternalToolCompletedEvent 0 s
testHookStartEventAllFields 0 s
testParseExitPlanModeRequestedEvent 0.003 s
testSubagentFailedEventAllFields 0 s
testParseSessionModelChangeEvent 0.002 s
testParseBaseFieldsEphemeral 0 s
testToolExecutionStartEventAllFields 0.001 s
testAssistantTurnEndEventAllFields 0 s
testParseBaseFieldsAllTogether 0 s
testAssistantMessageEventIncludesInteractionId 0 s
testParseAssistantReasoningEvent 0.002 s
testSubagentCompletedEventAllFields 0 s
testParsePermissionRequestedEvent 0.001 s
testParseSubagentSelectedEvent 0 s
testSessionModelChangeEventAllFields 0 s
testSessionHandoffEventAllFields 0.001 s
testParseEventWithUnknownFields 0 s
testUserMessageEventNoAttachments 0 s
testAssistantReasoningDeltaEventAllFields 0.001 s
testParseToolUserRequestedEvent 0.001 s
testParseEventWithNullData 0 s
testParseSessionResumeEvent 0.001 s
testParseSystemNotificationEvent 0.002 s
testParseBaseFieldsId 0.001 s
testParseSessionCompactionCompleteEvent 0.001 s
testAssistantUsageEventAllFields 0.001 s
testParseSessionPlanChangedEvent 0.002 s
testParseToolExecutionPartialResultEvent 0.002 s
testParseEventWithMissingData 0 s
testSessionResumeEventAllFields 0 s
testAssistantStreamingDeltaEventAllFields 0.003 s
testParseCommandQueuedEvent 0.002 s
testToolExecutionPartialResultEventAllFields 0.001 s
testSessionUsageInfoEventAllFields 0.001 s
testParseMissingTypeField 0 s
testParseUserMessageEvent 0.001 s
testSessionTruncationEventAllFields 0.001 s
testToolExecutionCompleteEventWithResult 0 s
testParseSessionShutdownEvent 0 s
testParseNullJsonNode 0.001 s
testParseHookStartEvent 0 s
testParseExternalToolRequestedEvent 0 s
testParseAllEventTypes 0.002 s
testParseAssistantTurnEndEvent 0 s
testParseUnknownEventType 0 s
testUserMessageEventAllFieldsWithAttachments 0.001 s
testSystemMessageEventAllFields 0 s
testParseAbortEvent 0 s
testParseAssistantUsageEvent 0.001 s
testSessionStartEventAllFields 0 s

DocumentationSamplesTest

docsAndJbangSamplesUseRequiredPermissionHandler 0.030 s

SessionEventHandlingTest

testHandlersRunOnDispatchThread 0.007 s
testDuplicateTypedHandlersBothReceiveEvent 0.002 s
testDefaultPolicyPropagatesAndLogs 0.001 s
testDuplicateGenericHandlersBothFire 0.001 s
testHandlerExceptionDoesNotBreakOtherHandlers 0.001 s
testNoHandlersDoesNotThrow 0 s
testPropagatePolicyStopsOnFirstError 0.001 s
testTypedEventHandler 0 s
testPropagatePolicyNoErrorHandlerStopsAndLogs 0.001 s
testErrorHandlerItselfThrowingStopsDispatch 0.002 s
testHandlersRunOffMainThread 0.002 s
testConcurrentDispatchFromMultipleThreads 0.006 s
testHandlerReceivesCorrectEventData 0.001 s
testErrorHandlerReceivesCorrectEventType 0.001 s
testUnsubscribeOneKeepsOther 0.001 s
testGenericEventHandler 0.001 s
testUnsubscribe 0.001 s
testPropagatePolicyErrorHandlerAlwaysInvoked 0.001 s
testSuppressPolicyWithMultipleErrors 0.001 s
testSwitchPolicyDynamically 0.002 s
testCustomEventErrorHandlerReceivesEventAndException 0.001 s
testCustomErrorHandlerCalledForAllErrors 0.001 s
testMultipleTypedHandlers 0.002 s
testUnsubscribeGenericHandler 0.001 s
testMixedHandlers 0.001 s
testErrorHandlerThrowingStopsRegardlessOfPolicy 0.001 s
testAllHandlersInvoked 0.001 s
testSetEventErrorHandlerToNullRestoresDefaultBehavior 0.001 s
testDefaultPolicyPropagatesOnError 0.001 s

SessionRequestBuilderTest

testBuildResumeRequestSetsEnvValueModeToDirect 0 s
testConfigureResumeSessionNullConfig 0.001 s
extractTransformCallbacks_appendMode_returnsOriginalConfig 0.001 s
testBuildResumeRequestHooksNonNullButEmpty 0.001 s
testBuildCreateRequestNullConfig 0 s
testBuildResumeRequestStreaming 0 s
testBuildCreateRequestSetsClientName 0.001 s
testConfigureResumeSessionWithHooks 0.001 s
testConfigureResumeSessionWithTools 0.001 s
testBuildResumeRequestSetsClientName 0 s
testBuildResumeRequestWithAgent 0.001 s
testBuildResumeRequestWithTools 0 s
testBuildResumeRequestHooksWithHandler 0.001 s
testBuildCreateRequestHooksNonNullButEmpty 0 s
testBuildCreateRequestHooksWithHandler 0.004 s
testConfigureResumeSessionWithUserInputHandler 0.001 s
testBuildResumeRequestAlwaysSetsRequestPermissionTrue 0.001 s
testBuildResumeRequestNullConfig 0 s
testBuildCreateRequestWithAgent 0.001 s
testBuildCreateRequestSetsEnvValueModeToDirect 0 s
extractTransformCallbacks_nullSystemMessage_returnsNull 0 s
testBuildResumeRequestDisableResume 0.001 s
testBuildResumeRequestWithUserInputHandler 0 s
extractTransformCallbacks_customizeModeNoTransforms_returnsOriginalConfig 0.003 s
testBuildCreateRequestAlwaysSetsRequestPermissionTrue 0.001 s
extractTransformCallbacks_customizeModeWithTransform_extractsCallbacks 0.001 s

JsonRpcClientTest

testReaderWithMissingContentLength 0.004 s
testErrorResponseWithoutMessage 0.002 s
testIsConnectedWithSocketClosed 0.001 s
testHandlerThrowsExceptionWithId 0.003 s
testInvalidJson 0.203 s
testGetProcessNullForSocket 0.001 s
testMethodCallWithNullId 0.202 s
testHandlerThrowsExceptionWithoutId 0.202 s
testIsConnectedWithProcessDead 0.002 s
testGetProcessReturnsProcess 0.002 s
testInvokeWithSendFailure 0.102 s
testIsConnectedWithSocket 0 s
testReaderWithUnknownHeader 0.001 s
testNoHandlerForNotification 0.202 s
testCloseWithPendingRequests 0.001 s
testMessageWithNeitherResponseNorMethod 0.202 s
testInvokeWithDeserializationError 0.002 s
testNotify 0.001 s
testInvokeWithVoidPrimitive 0.002 s
testNoHandlerForRequestSendsErrorResponse 0.002 s
testErrorResponseWithoutCode 0.002 s
testIsConnectedWithProcess 0.002 s
testResponseWithUnknownId 0.202 s

HooksTest

testInvokeBothHooksForSingleToolCall 1.866 s
testInvokePreToolUseHookWhenModelRunsATool 1.864 s
testInvokePostToolUseHookAfterModelRunsATool 1.888 s
testDenyToolExecutionWhenPreToolUseReturnsDeny 1.934 s