Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
437 0 0 0 100% 188.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 437 0 0 0 100% 188.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
HooksTest 4 0 0 0 100% 7.518 s
CopilotClientTest 33 0 0 0 100% 35.25 s
SessionEventHandlingTest 29 0 0 0 100% 0.044 s
CliServerManagerTest 18 0 0 0 100% 0.027 s
ErrorHandlingTest 5 0 0 0 100% 9.138 s
SessionHandlerTest 20 0 0 0 100% 0.071 s
JsonRpcClientTest 23 0 0 0 100% 1.347 s
SessionEventsE2ETest 6 0 0 0 100% 10.56 s
SessionEventParserTest 104 0 0 0 100% 0.169 s
ClosedSessionGuardTest 16 0 0 0 100% 16.92 s
PermissionRequestResultKindTest 14 0 0 0 100% 0.011 s
CopilotSessionTest 21 0 0 0 100% 38.06 s
LifecycleEventManagerTest 12 0 0 0 100% 0.030 s
SessionRequestBuilderTest 22 0 0 0 100% 0.013 s
DocumentationSamplesTest 1 0 0 0 100% 0.033 s
ToolsTest 7 0 0 0 100% 12.37 s
PermissionsTest 9 0 0 0 100% 17.22 s
MetadataApiTest 11 0 0 0 100% 5.324 s
SkillsTest 2 0 0 0 100% 3.975 s
CompactionTest 2 0 0 0 100% 4.127 s
StreamingFidelityTest 3 0 0 0 100% 7.169 s
AskUserTest 3 0 0 0 100% 5.719 s
ConfigCloneTest 11 0 0 0 100% 0.016 s
RpcHandlerDispatcherTest 23 0 0 0 100% 0.124 s
McpAndAgentsTest 9 0 0 0 100% 13.03 s
ToolInvocationTest 6 0 0 0 100% 0.009 s
ProviderConfigTest 23 0 0 0 100% 0.045 s

Test Cases

[Summary] [Package List] [Test Cases]

HooksTest

testInvokeBothHooksForSingleToolCall 1.738 s
testInvokePreToolUseHookWhenModelRunsATool 1.690 s
testInvokePostToolUseHookAfterModelRunsATool 1.730 s
testDenyToolExecutionWhenPreToolUseReturnsDeny 1.762 s

CopilotClientTest

testForceStopWithoutCleanup 1.497 s
testOnLifecycleUnsubscribeStopsDelivery 0.001 s
testOnLifecycleWildcardReceivesAllEvents 0.001 s
testShouldReportErrorWithStderrWhenCliFailsToStart 30.00 s
testStartIsIdempotentSingleConnectionAttempt 0.001 s
testStartAndConnectUsingTcp 1.086 s
testCliUrlAutoCorrectsUseStdio 0.001 s
testOnLifecycleTypedReceivesOnlyMatchingEvents 0 s
testStopWithNoConnectionCompletes 0.001 s
testListModels_WithCustomHandler_CallsHandler 0.001 s
testUseLoggedInUserWithCliUrlThrows 0 s
testNullOptionsDefaultsToEmpty 0 s
testOnLifecycleMultipleHandlers 0.001 s
testStartAndConnectUsingStdio 1.003 s
testExplicitUseLoggedInUserFalse 0.001 s
testGitHubTokenOptionAccepted 0.001 s
testEnsureConnectedThrowsWhenNotStartedAndAutoStartDisabled 0 s
testCliUrlOnlyConstruction 0 s
testGitHubTokenWithCliUrlThrows 0.001 s
testExplicitUseLoggedInUserTrueWithGitHubToken 0 s
testUseLoggedInUserDefaultsToNull 0 s
testListModels_WithCustomHandler_WorksWithoutStart 0.001 s
testGetStateErrorAfterFailedStart 0.002 s
testCloseIsIdempotent 0 s
testForceStopWithNoConnectionCompletes 0 s
testListModels_WithCustomHandler_CachesResults 0.001 s
testClientConstruction 0.001 s
testCloseAfterFailedStart 0.002 s
testGetStateConnectingDuringStart 0.002 s
testCliUrlMutualExclusionWithCliPath 0 s
testOnLifecycleTypedUnsubscribeStopsDelivery 0 s
testClientConstructionWithOptions 0.001 s
testCloseSessionAfterStoppingClientDoesNotThrow 1.626 s

SessionEventHandlingTest

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

CliServerManagerTest

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

ErrorHandlingTest

testPermissionHandlerErrors_sessionErrorEventContainsDetails 1.695 s
testHandlesToolCallingErrors_sessionContinuesAfterToolError 1.723 s
testHandlesToolCallingErrors_toolReturnsFailureResult 1.695 s
testHandlesToolCallingErrors_toolErrorDoesNotCrashSession 1.672 s
testShouldHandlePermissionHandlerErrorsGracefully_deniesPermission 1.758 s

SessionHandlerTest

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

JsonRpcClientTest

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

SessionEventsE2ETest

testInvokesBuiltInTools_eventOrderDuringToolExecution 1.719 s
testShouldReceiveSessionEvents_sessionIdleAfterMessage 1.643 s
testShouldReceiveSessionEvents_assistantUsageEvent 1.621 s
testShouldReceiveSessionEvents_userMessageEvent 1.648 s
testInvokesBuiltInTools_toolExecutionCompleteEvent 1.692 s
testShouldReceiveSessionEvents_assistantTurnEvents 1.643 s

SessionEventParserTest

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

ClosedSessionGuardTest

testSendAndWaitOptionsThrowsAfterTermination 1.059 s
testSetEventErrorPolicyThrowsAfterTermination 1.008 s
testOnConsumerThrowsAfterTermination 1.018 s
testSendAndWaitWithTimeoutThrowsAfterTermination 1.044 s
testGetSessionIdWorksAfterTermination 1.028 s
testSendStringThrowsAfterTermination 1.014 s
testSendAndWaitStringThrowsAfterTermination 1.012 s
testAbortThrowsAfterTermination 1.025 s
testGetMessagesThrowsAfterTermination 1.015 s
testOnTypedConsumerThrowsAfterTermination 1.014 s
testSetModelThrowsAfterTermination 1.031 s
testSetEventErrorHandlerThrowsAfterTermination 1.013 s
testCloseIsIdempotent 1.021 s
testSendOptionsThrowsAfterTermination 1.009 s
testGetWorkspacePathWorksAfterTermination 1.005 s
testTryWithResourcesDoubleClose 1.017 s

PermissionRequestResultKindTest

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

CopilotSessionTest

testShouldReceiveSessionEvents_createAndDestroy 1.351 s
testShouldListSessions 2.030 s
testShouldDeleteSession 1.660 s
testShouldGetLastSessionId 1.673 s
testSendAndWaitBlocksUntilSessionIdleAndReturnsFinalAssistantMessage 1.694 s
testSendAndWaitThrowsOnTimeout 1.674 s
testShouldAbortSession 1.761 s
testShouldCreateSessionWithAvailableTools 1.622 s
testListSessionsIncludesContextWhenAvailable 1.043 s
testShouldCreateSessionWithCustomConfigDir 1.615 s
testShouldCreateSessionWithAppendedSystemMessageConfig 1.651 s
testShouldCreateSessionWithCustomTool 1.703 s
testShouldThrowErrorWhenResumingNonExistentSession 0.997 s
testShouldHaveStatefulConversation 1.685 s
testShouldReceiveSessionEvents 1.622 s
testShouldResumeSessionUsingTheSameClient 1.705 s
testShouldCreateSessionWithExcludedTools 1.637 s
testShouldCreateSessionWithReplacedSystemMessageConfig 1.579 s
testShouldResumeSessionUsingNewClient 3.195 s
testSessionListFilterFluentAPI 1.048 s
testSendReturnsImmediatelyWhileEventsStreamInBackground 4.026 s

LifecycleEventManagerTest

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

SessionRequestBuilderTest

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

DocumentationSamplesTest

docsAndJbangSamplesUseRequiredPermissionHandler 0.032 s

ToolsTest

testInvokesCustomTool(TestInfo) 1.699 s
testOverridesBuiltInToolWithCustomTool 1.703 s
testCanReceiveAndReturnComplexTypes(TestInfo) 1.667 s
testInvokesBuiltInTools(TestInfo) 1.672 s
testInvokesCustomToolWithPermissionHandler(TestInfo) 1.723 s
testDeniesCustomToolWhenPermissionDenied(TestInfo) 1.641 s
testHandlesToolCallingErrors(TestInfo) 1.668 s

PermissionsTest

testAsyncPermissionHandler(TestInfo) 2.120 s
testShouldHandlePermissionHandlerErrorsGracefully(TestInfo) 1.693 s
testShouldDenyToolOperationsWhenHandlerExplicitlyDenies(TestInfo) 1.708 s
testResumeSessionWithPermissionHandler(TestInfo) 2.180 s
testDenyPermission(TestInfo) 1.663 s
testShouldDenyToolOperationsWhenHandlerExplicitlyDeniesAfterResume(TestInfo) 1.739 s
testShouldWorkWithApproveAllPermissionHandler(TestInfo) 1.660 s
testPermissionHandlerForWriteOperations(TestInfo) 1.744 s
testToolCallIdInPermissionRequests(TestInfo) 2.089 s

MetadataApiTest

testProtocolVersionIsThree 0 s
testGetAuthStatusResponseNotAuthenticated 0.002 s
testGetStatusResponseDeserialization 0.001 s
testToolExecutionProgressEventParsing 0.001 s
testGetAuthStatus 1.566 s
testListModels 2.727 s
testGetModelsResponseDeserialization 0.003 s
testModelInfoDeserialization 0 s
testToolExecutionProgressEventType 0.001 s
testGetStatus 1.016 s
testGetAuthStatusResponseDeserialization 0 s

SkillsTest

testShouldLoadAndApplySkillFromSkillDirectories 1.705 s
testShouldNotApplySkillWhenDisabledViaDisabledSkills 1.649 s

CompactionTest

testShouldTriggerCompactionWithLowThresholdAndEmitEvents 1.901 s
testShouldNotEmitCompactionEventsWhenInfiniteSessionsDisabled 1.620 s

StreamingFidelityTest

testShouldNotProduceDeltasWhenStreamingIsDisabled 1.645 s
testShouldProduceDeltaEventsWhenStreamingIsEnabled 1.640 s
testShouldProduceDeltasAfterSessionResume 3.276 s

AskUserTest

testShouldHandleFreeformUserInputResponse 1.716 s
testShouldReceiveChoicesInUserInputRequest 1.706 s
testShouldInvokeUserInputHandlerWhenModelUsesAskUserTool 1.705 s

ConfigCloneTest

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

RpcHandlerDispatcherTest

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

McpAndAgentsTest

testShouldAcceptMcpServerConfigurationOnSessionResume 1.744 s
testShouldHandleMultipleMcpServers 1.013 s
testShouldAcceptMultipleCustomAgents 1.012 s
testShouldAcceptCustomAgentConfigurationOnSessionCreate 1.614 s
testShouldAcceptCustomAgentWithMcpServers 1.016 s
testShouldAcceptCustomAgentConfigurationOnSessionResume 1.672 s
testShouldAcceptCustomAgentWithToolsConfiguration 1.025 s
testShouldAcceptBothMcpServersAndCustomAgents 1.679 s
testShouldAcceptMcpServerConfigurationOnSessionCreate 1.649 s

ToolInvocationTest

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

ProviderConfigTest

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