Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
556 0 0 0 100% 190.6 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 556 0 0 0 100% 190.6 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
ZeroTimeoutContractTest 1 0 0 0 100% 0.866 s
SessionEventsE2ETest 6 0 0 0 100% 10.05 s
DocumentationSamplesTest 1 0 0 0 100% 0.034 s
CommandsTest 11 0 0 0 100% 0.016 s
ClosedSessionGuardTest 16 0 0 0 100% 13.47 s
CopilotClientTest 33 0 0 0 100% 34.25 s
CliServerManagerTest 20 0 0 0 100% 0.037 s
SessionEventHandlingTest 29 0 0 0 100% 0.044 s
AgentInfoTest 6 0 0 0 100% 0.017 s
SessionEventParserTest 110 0 0 0 100% 0.162 s
MessageAttachmentTest 12 0 0 0 100% 0.265 s
SessionRequestBuilderTest 34 0 0 0 100% 0.032 s
MetadataApiTest 11 0 0 0 100% 4.095 s
JsonRpcClientTest 23 0 0 0 100% 1.357 s
RpcHandlerDispatcherTest 27 0 0 0 100% 0.111 s
ErrorHandlingTest 5 0 0 0 100% 8.226 s
ModelInfoTest 5 0 0 0 100% 0.006 s
StreamingFidelityTest 3 0 0 0 100% 6.397 s
ConfigCloneTest 18 0 0 0 100% 0.028 s
SkillsTest 2 0 0 0 100% 3.533 s
DataObjectCoverageTest 14 0 0 0 100% 0.030 s
ToolsTest 7 0 0 0 100% 11.27 s
ExecutorWiringTest 6 0 0 0 100% 8.419 s
CompactionTest 2 0 0 0 100% 3.764 s
ElicitationTest 14 0 0 0 100% 0.011 s
TimeoutEdgeCaseTest 2 0 0 0 100% 10.22 s
PermissionsTest 9 0 0 0 100% 15.65 s
PermissionRequestResultKindTest 14 0 0 0 100% 0.015 s
HooksTest 4 0 0 0 100% 6.761 s
AskUserTest 3 0 0 0 100% 5.170 s
McpAndAgentsTest 9 0 0 0 100% 11.34 s
ProviderConfigTest 23 0 0 0 100% 0.057 s
TelemetryConfigTest 7 0 0 0 100% 0.007 s
SchedulerShutdownRaceTest 1 0 0 0 100% 0.007 s
SessionHandlerTest 21 0 0 0 100% 0.062 s
CopilotSessionTest 22 0 0 0 100% 34.68 s
ForwardCompatibilityTest 7 0 0 0 100% 0.008 s
LifecycleEventManagerTest 12 0 0 0 100% 0.067 s
ToolInvocationTest 6 0 0 0 100% 0.049 s

Test Cases

[Summary] [Package List] [Test Cases]

ZeroTimeoutContractTest

sendAndWaitWithZeroTimeoutShouldNotTimeOut 0.863 s

SessionEventsE2ETest

testInvokesBuiltInTools_eventOrderDuringToolExecution 1.848 s
testShouldReceiveSessionEvents_sessionIdleAfterMessage 1.479 s
testShouldReceiveSessionEvents_assistantUsageEvent 1.462 s
testShouldReceiveSessionEvents_userMessageEvent 1.474 s
testInvokesBuiltInTools_toolExecutionCompleteEvent 1.566 s
testShouldReceiveSessionEvents_assistantTurnEvents 1.487 s

DocumentationSamplesTest

docsAndJbangSamplesUseRequiredPermissionHandler 0.033 s

CommandsTest

commandWireDefinitionFluentSettersChaining 0.004 s
buildCreateRequestWithNoCommandsHasNullCommandsList 0 s
commandWireDefinitionNullDescriptionAllowed 0 s
resumeConfigCommandsAreCloned 0.003 s
commandContextHasAllProperties 0 s
sessionConfigCommandsAreCloned 0 s
commandDefinitionHasRequiredProperties 0 s
commandWireDefinitionFluentSetters 0.001 s
commandWireDefinitionHasNameAndDescription 0 s
buildCreateRequestIncludesCommandWireDefinitions 0.001 s
buildResumeRequestIncludesCommandWireDefinitions 0.001 s

ClosedSessionGuardTest

testSendAndWaitOptionsThrowsAfterTermination 0.813 s
testSetEventErrorPolicyThrowsAfterTermination 0.809 s
testOnConsumerThrowsAfterTermination 0.810 s
testSendAndWaitWithTimeoutThrowsAfterTermination 0.806 s
testGetSessionIdWorksAfterTermination 0.801 s
testSendStringThrowsAfterTermination 0.802 s
testSendAndWaitStringThrowsAfterTermination 0.808 s
testAbortThrowsAfterTermination 0.810 s
testGetMessagesThrowsAfterTermination 0.810 s
testOnTypedConsumerThrowsAfterTermination 0.830 s
testSetModelThrowsAfterTermination 0.822 s
testSetEventErrorHandlerThrowsAfterTermination 0.808 s
testCloseIsIdempotent 0.795 s
testSendOptionsThrowsAfterTermination 0.798 s
testGetWorkspacePathWorksAfterTermination 0.801 s
testTryWithResourcesDoubleClose 0.820 s

CopilotClientTest

testForceStopWithoutCleanup 1.244 s
testOnLifecycleUnsubscribeStopsDelivery 0.001 s
testOnLifecycleWildcardReceivesAllEvents 0 s
testShouldReportErrorWithStderrWhenCliFailsToStart 30.00 s
testStartIsIdempotentSingleConnectionAttempt 0.001 s
testStartAndConnectUsingTcp 0.872 s
testCliUrlAutoCorrectsUseStdio 0 s
testOnLifecycleTypedReceivesOnlyMatchingEvents 0 s
testStopWithNoConnectionCompletes 0 s
testListModels_WithCustomHandler_CallsHandler 0.001 s
testUseLoggedInUserWithCliUrlThrows 0.001 s
testNullOptionsDefaultsToEmpty 0.001 s
testOnLifecycleMultipleHandlers 0.001 s
testStartAndConnectUsingStdio 0.819 s
testExplicitUseLoggedInUserFalse 0 s
testGitHubTokenOptionAccepted 0 s
testEnsureConnectedThrowsWhenNotStartedAndAutoStartDisabled 0.001 s
testCliUrlOnlyConstruction 0 s
testGitHubTokenWithCliUrlThrows 0.001 s
testExplicitUseLoggedInUserTrueWithGitHubToken 0.001 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.001 s
testCliUrlMutualExclusionWithCliPath 0.001 s
testOnLifecycleTypedUnsubscribeStopsDelivery 0.001 s
testClientConstructionWithOptions 0 s
testCloseSessionAfterStoppingClientDoesNotThrow 1.281 s

CliServerManagerTest

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

SessionEventHandlingTest

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

AgentInfoTest

defaultValuesAreNull 0.002 s
fluentChainingReturnsThis 0 s
fluentChainingReturnsSameInstance 0.002 s
nameGetterSetter 0.002 s
descriptionGetterSetter 0.002 s
displayNameGetterSetter 0 s

SessionEventParserTest

testParseJsonNodeUserMessageWithAttachment 0.001 s
testParseSessionWorkspaceFileChangedEvent 0.008 s
testParseSystemMessageEvent 0.003 s
testAssistantUsageEventWithNullQuotaSnapshots 0.001 s
testAssistantIntentEventAllFields 0.002 s
testSessionShutdownEventAllFields 0.007 s
testParseSessionHandoffEvent 0.003 s
testParseSessionInfoEvent 0.001 s
testParseToolExecutionCompleteEvent 0.001 s
testParseBaseFieldsNullWhenAbsent 0 s
testParseExitPlanModeCompletedEvent 0.002 s
testParseAssistantMessageEvent 0 s
testParseSessionErrorEvent 0.002 s
testSessionInfoEventAllFields 0.001 s
testAssistantMessageDeltaEventAllFields 0.003 s
testParseCommandExecuteEvent 0.003 s
testSubagentSelectedEventAllFields 0.003 s
testToolExecutionProgressEventAllFields 0.001 s
testParseToolExecutionStartEvent 0.001 s
testSessionErrorEventAllFields 0.001 s
testAbortEventAllFields 0 s
testParseEmptyJson 0 s
testParsePermissionCompletedEvent 0.001 s
testParseSessionCompactionStartEvent 0.002 s
testParseJsonNodeAssistantMessageWithFields 0.001 s
testParseCommandCompletedEvent 0.002 s
testParseSessionTaskCompleteEvent 0.002 s
testParseSessionIdleEvent 0 s
testAssistantTurnStartEventIncludesInteractionId 0.001 s
testParseSessionUsageInfoEvent 0 s
testParseAssistantTurnStartEvent 0 s
testParseToolExecutionProgressEvent 0.001 s
testParseSessionSnapshotRewindEvent 0.002 s
testParseJsonNodeSessionShutdownWithCodeChanges 0.001 s
testParseAssistantReasoningDeltaEvent 0.002 s
testParseHookEndEvent 0.001 s
testParseSessionContextChangedEvent 0.002 s
testParseSubagentFailedEvent 0.002 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.002 s
testParseSessionStartEvent 0.001 s
testParseSessionModeChangedEvent 0.002 s
testParsePendingMessagesModifiedEvent 0.001 s
testSubagentStartedEventAllFields 0.002 s
testParseBaseFieldsTimestamp 0 s
testParseSkillInvokedEvent 0.001 s
testParseSubagentStartedEvent 0 s
testSessionCompactionCompleteEventAllFields 0.012 s
testToolUserRequestedEventAllFields 0.002 s
testParseBaseFieldsParentId 0.001 s
testParseSubagentCompletedEvent 0.002 s
testParseExternalToolCompletedEvent 0 s
testHookStartEventAllFields 0 s
testParseExitPlanModeRequestedEvent 0.002 s
testSubagentFailedEventAllFields 0 s
testParseSessionModelChangeEvent 0.002 s
testParseBaseFieldsEphemeral 0.001 s
testToolExecutionStartEventAllFields 0 s
testAssistantTurnEndEventAllFields 0 s
testParseBaseFieldsAllTogether 0.001 s
testAssistantMessageEventIncludesInteractionId 0.001 s
testParseAssistantReasoningEvent 0.002 s
testParseElicitationRequestedEvent 0.003 s
testSubagentCompletedEventAllFields 0.001 s
testParsePermissionRequestedEvent 0 s
testParseSubagentSelectedEvent 0 s
testSessionModelChangeEventAllFields 0.001 s
testSessionHandoffEventAllFields 0 s
testParseEventWithUnknownFields 0 s
testUserMessageEventNoAttachments 0.001 s
testAssistantReasoningDeltaEventAllFields 0 s
testParseToolUserRequestedEvent 0.001 s
testParseEventWithNullData 0 s
testParseSubagentDeselectedEvent 0.001 s
testParseSessionResumeEvent 0 s
testParseSystemNotificationEvent 0.002 s
testParseBaseFieldsId 0 s
testParseSessionCompactionCompleteEvent 0.001 s
testAssistantUsageEventAllFields 0 s
testParseSessionPlanChangedEvent 0.002 s
testParseToolExecutionPartialResultEvent 0.002 s
testParseEventWithMissingData 0.001 s
testSessionResumeEventAllFields 0 s
testParseCapabilitiesChangedEvent 0.003 s
testAssistantStreamingDeltaEventAllFields 0.002 s
testParseCommandQueuedEvent 0.002 s
testToolExecutionPartialResultEventAllFields 0 s
testSessionUsageInfoEventAllFields 0.001 s
testParseMissingTypeField 0 s
testParseUserMessageEvent 0.001 s
testSessionTruncationEventAllFields 0 s
testToolExecutionCompleteEventWithResult 0 s
testParseSessionShutdownEvent 0 s
testParseNullJsonNode 0 s
testParseHookStartEvent 0.001 s
testParseExternalToolRequestedEvent 0 s
testParseAllEventTypes 0.001 s
testParseAssistantTurnEndEvent 0 s
testParseUnknownEventType 0 s
testUserMessageEventAllFieldsWithAttachments 0 s
testSystemMessageEventAllFields 0 s
testParseAbortEvent 0.001 s
testParseAssistantUsageEvent 0 s
testSessionStartEventAllFields 0.001 s

MessageAttachmentTest

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

SessionRequestBuilderTest

testBuildResumeRequestSetsEnvValueModeToDirect 0.001 s
configureSessionWithCommands_registersCommands 0.001 s
testConfigureResumeSessionNullConfig 0 s
configureSessionWithOnEvent_registersEventHandler 0 s
extractTransformCallbacks_appendMode_returnsOriginalConfig 0.001 s
testBuildResumeRequestHooksNonNullButEmpty 0 s
testBuildCreateRequestNullConfig 0 s
testBuildResumeRequestStreaming 0.001 s
configureResumedSessionWithOnEvent_registersEventHandler 0.001 s
testBuildCreateRequestSetsClientName 0 s
testConfigureResumeSessionWithHooks 0 s
testConfigureResumeSessionWithTools 0 s
testBuildResumeRequestSetsClientName 0.001 s
testBuildResumeRequestWithAgent 0 s
testBuildResumeRequestWithTools 0.002 s
testBuildResumeRequestHooksWithHandler 0.003 s
testBuildCreateRequestHooksNonNullButEmpty 0 s
testBuildCreateRequestHooksWithHandler 0 s
testConfigureResumeSessionWithUserInputHandler 0.001 s
buildCreateRequestWithSessionId_usesProvidedSessionId 0.001 s
testBuildResumeRequestAlwaysSetsRequestPermissionTrue 0 s
testBuildResumeRequestNullConfig 0 s
testBuildCreateRequestWithAgent 0 s
configureSessionWithElicitationHandler_registersHandler 0.001 s
testBuildCreateRequestSetsEnvValueModeToDirect 0.001 s
extractTransformCallbacks_nullSystemMessage_returnsNull 0 s
testBuildResumeRequestDisableResume 0.001 s
testBuildResumeRequestWithUserInputHandler 0.001 s
extractTransformCallbacks_customizeModeNoTransforms_returnsOriginalConfig 0.002 s
testBuildCreateRequestAlwaysSetsRequestPermissionTrue 0 s
configureResumedSessionWithCommands_registersCommands 0 s
configureResumedSessionWithElicitationHandler_registersHandler 0 s
extractTransformCallbacks_customizeModeWithTransform_extractsCallbacks 0.001 s
configureSessionWithNullConfig_returnsEarly 0.001 s

MetadataApiTest

testProtocolVersionIsThree 0.001 s
testGetAuthStatusResponseNotAuthenticated 0.002 s
testGetStatusResponseDeserialization 0.002 s
testToolExecutionProgressEventParsing 0.003 s
testGetAuthStatus 1.287 s
testListModels 1.996 s
testGetModelsResponseDeserialization 0.005 s
testModelInfoDeserialization 0.002 s
testToolExecutionProgressEventType 0 s
testGetStatus 0.789 s
testGetAuthStatusResponseDeserialization 0.001 s

JsonRpcClientTest

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

RpcHandlerDispatcherTest

systemMessageTransformWithUnknownSession 0.009 s
userInputRequestWithUnknownSession 0.001 s
lifecycleEventWithoutMetadata 0.001 s
userInputRequestWithNullChoicesAndFreeform 0.002 s
userInputRequestHandlerFails 0.002 s
systemMessageTransformWithKnownSessionNoCallbacks 0.002 s
toolCallWithUnknownTool 0.001 s
toolCallWithUnknownSession 0.001 s
lifecycleEventWithNullMetadata 0.001 s
permissionRequestWithUnknownSession 0.002 s
systemMessageTransformWithNullSessionId 0.002 s
permissionRequestV2RejectsNoResult 0.003 s
hooksInvokeWithNonNullOutput 0.002 s
hooksInvokeWithUnknownSession 0.002 s
hooksInvokeWithNoHooksRegistered 0.002 s
permissionRequestWithHandler 0.002 s
userInputRequestWithNullAnswer 0.002 s
lifecycleEventWithMissingTypeAndSessionId 0.001 s
sessionEventWithUnknownSession 0.001 s
hooksInvokeWithNullOutput 0.001 s
hooksInvokeHandlerFails 0.002 s
toolCallHandlerFails 0.001 s
sessionEventWithNullEventNode 0.051 s
permissionRequestHandlerFails 0.002 s
toolCallWithNonStringResult 0.002 s
toolCallReturnsToolResultObjectDirectly 0.001 s
userInputRequestWithNoHandler 0.002 s

ErrorHandlingTest

testPermissionHandlerErrors_sessionErrorEventContainsDetails 1.551 s
testHandlesToolCallingErrors_sessionContinuesAfterToolError 1.555 s
testHandlesToolCallingErrors_toolReturnsFailureResult 1.511 s
testHandlesToolCallingErrors_toolErrorDoesNotCrashSession 1.539 s
testShouldHandlePermissionHandlerErrorsGracefully_deniesPermission 1.544 s

ModelInfoTest

modelSupportsReasoningEffortGetterSetter 0.002 s
modelInfoSupportedReasoningEffortsGetterSetter 0.001 s
sessionMetadataGettersAndSetters 0.001 s
modelSupportsFluentChaining 0 s
modelInfoDefaultReasoningEffortGetterSetter 0 s

StreamingFidelityTest

testShouldNotProduceDeltasWhenStreamingIsDisabled 1.462 s
testShouldProduceDeltaEventsWhenStreamingIsEnabled 1.485 s
testShouldProduceDeltasAfterSessionResume 2.907 s

ConfigCloneTest

clonePreservesNullFields 0.005 s
copilotClientOptionsDeprecatedAutoRestart 0 s
copilotClientOptionsSetCliArgsNullClearsExisting 0.001 s
sessionConfigAgentAndOnEventCloned 0.001 s
resumeSessionConfigCloneBasic 0.001 s
copilotClientOptionsCloneBasic 0.001 s
copilotClientOptionsSetUseLoggedInUserNull 0.001 s
resumeSessionConfigAgentAndOnEventCloned 0.001 s
copilotClientOptionsDeprecatedGithubToken 0.001 s
copilotClientOptionsEnvironmentIndependence 0.001 s
resumeSessionConfigAllSetters 0 s
copilotClientOptionsOnListModelsCloned 0.001 s
messageOptionsCloneBasic 0 s
copilotClientOptionsArrayIndependence 0.001 s
sessionConfigListIndependence 0.001 s
copilotClientOptionsSetTelemetry 0 s
sessionConfigCloneBasic 0 s
copilotClientOptionsSetEnvironmentNullClearsExisting 0.001 s

SkillsTest

testShouldLoadAndApplySkillFromSkillDirectories 1.537 s
testShouldNotApplySkillWhenDisabledViaDisabledSkills 1.485 s

DataObjectCoverageTest

getForegroundSessionResponseRecord 0.006 s
preToolUseHookInputGetters 0.001 s
toolBinaryResultRecord 0.001 s
postToolUseHookOutputRecord 0.001 s
sectionOverrideSetContent 0.001 s
permissionRequestResultSetRules 0 s
toolResultObjectErrorWithTextAndError 0.001 s
postToolUseHookInputGetters 0.001 s
preToolUseHookOutputAsk 0.001 s
preToolUseHookOutputDenyWithReason 0.001 s
toolResultObjectFailure 0.001 s
preToolUseHookOutputWithModifiedArgs 0.001 s
permissionRequestSetExtensionData 0.002 s
setForegroundSessionResponseRecord 0.003 s

ToolsTest

testInvokesCustomTool(TestInfo) 1.554 s
testOverridesBuiltInToolWithCustomTool 1.531 s
testCanReceiveAndReturnComplexTypes(TestInfo) 1.563 s
testInvokesBuiltInTools(TestInfo) 1.554 s
testInvokesCustomToolWithPermissionHandler(TestInfo) 1.541 s
testDeniesCustomToolWhenPermissionDenied(TestInfo) 1.485 s
testHandlesToolCallingErrors(TestInfo) 1.526 s

ExecutorWiringTest

testUserInputDispatchUsesProvidedExecutor 1.558 s
testToolCallDispatchUsesProvidedExecutor 1.576 s
testHooksDispatchUsesProvidedExecutor 1.563 s
testPermissionDispatchUsesProvidedExecutor 1.604 s
testClientStopUsesProvidedExecutor 0.807 s
testClientStartUsesProvidedExecutor 0.783 s

CompactionTest

testShouldTriggerCompactionWithLowThresholdAndEmitEvents 1.796 s
testShouldNotEmitCompactionEventsWhenInfiniteSessionsDisabled 1.461 s

ElicitationTest

elicitationResultActionValues 0.001 s
elicitationResultHasActionAndContent 0.001 s
sessionCapabilitiesTypesAreProperlyStructured 0 s
elicitationSchemaHasTypeAndProperties 0.001 s
elicitationSchemaDefaultTypeIsObject 0 s
buildCreateRequestDoesNotSetRequestElicitationWhenNoHandler 0.001 s
buildResumeRequestSetsRequestElicitationWhenHandlerPresent 0.001 s
resumeConfigOnElicitationRequestIsCloned 0 s
inputOptionsHasAllFields 0.001 s
elicitationParamsHasMessageAndSchema 0.001 s
defaultCapabilitiesAreEmpty 0 s
buildCreateRequestSetsRequestElicitationWhenHandlerPresent 0.001 s
sessionConfigOnElicitationRequestIsCloned 0 s
elicitationContextHasAllProperties 0 s

TimeoutEdgeCaseTest

testTimeoutDoesNotFireAfterSessionClose 5.006 s
testSendAndWaitReusesTimeoutThread 5.210 s

PermissionsTest

testAsyncPermissionHandler(TestInfo) 1.949 s
testShouldHandlePermissionHandlerErrorsGracefully(TestInfo) 1.568 s
testShouldDenyToolOperationsWhenHandlerExplicitlyDenies(TestInfo) 1.539 s
testResumeSessionWithPermissionHandler(TestInfo) 2.015 s
testDenyPermission(TestInfo) 1.451 s
testShouldDenyToolOperationsWhenHandlerExplicitlyDeniesAfterResume(TestInfo) 1.604 s
testShouldWorkWithApproveAllPermissionHandler(TestInfo) 1.460 s
testPermissionHandlerForWriteOperations(TestInfo) 1.582 s
testToolCallIdInPermissionRequests(TestInfo) 1.951 s

PermissionRequestResultKindTest

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

HooksTest

testInvokeBothHooksForSingleToolCall 1.554 s
testInvokePreToolUseHookWhenModelRunsATool 1.565 s
testInvokePostToolUseHookAfterModelRunsATool 1.505 s
testDenyToolExecutionWhenPreToolUseReturnsDeny 1.611 s

AskUserTest

testShouldHandleFreeformUserInputResponse 1.550 s
testShouldReceiveChoicesInUserInputRequest 1.552 s
testShouldInvokeUserInputHandlerWhenModelUsesAskUserTool 1.540 s

McpAndAgentsTest

testShouldAcceptMcpServerConfigurationOnSessionResume 1.593 s
testShouldHandleMultipleMcpServers 0.815 s
testShouldAcceptMultipleCustomAgents 0.802 s
testShouldAcceptCustomAgentConfigurationOnSessionCreate 1.492 s
testShouldAcceptCustomAgentWithMcpServers 0.795 s
testShouldAcceptCustomAgentConfigurationOnSessionResume 1.526 s
testShouldAcceptCustomAgentWithToolsConfiguration 0.809 s
testShouldAcceptBothMcpServersAndCustomAgents 1.487 s
testShouldAcceptMcpServerConfigurationOnSessionCreate 1.505 s

ProviderConfigTest

testResumeSessionConfigProviderSerialization 0.012 s
testSerializeOpenAiProvider 0.002 s
testSerializeCustomWireApi 0.001 s
testResumeSessionConfigWithProvider 0.001 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.001 s
testSerializeEmptyAzureOptionsOmitsAllFields 0.001 s
testSerializeEmptyProviderOmitsAllFields 0.001 s
testAzureOptionsFluentSetter 0 s
testDefaultsAreNull 0.001 s
testSessionConfigWithoutProviderOmitsField 0.001 s
testFluentSettersReturnSameInstance 0.001 s
testSerializeBearerTokenProvider 0 s
testAzureOptionsDefaultsAreNull 0.001 s
testSerializeAzureOpenAiProvider 0.001 s
testGettersReturnSetValues 0.001 s
testSessionConfigWithAzureProvider 0.001 s
testDeserializeOpenAiProvider 0.001 s

TelemetryConfigTest

captureContentGetterSetter 0.001 s
exporterTypeGetterSetter 0.001 s
otlpEndpointGetterSetter 0.001 s
defaultValuesAreNull 0.001 s
fluentChainingReturnsThis 0 s
filePathGetterSetter 0 s
sourceNameGetterSetter 0 s

SchedulerShutdownRaceTest

sendAndWaitShouldReturnFailedFutureWhenSchedulerIsShutDown 0.007 s

SessionHandlerTest

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

CopilotSessionTest

testShouldGetSessionMetadataById 1.489 s
testShouldReceiveSessionEvents_createAndDestroy 0.812 s
testShouldListSessions 1.769 s
testShouldDeleteSession 1.481 s
testShouldGetLastSessionId 1.495 s
testSendAndWaitBlocksUntilSessionIdleAndReturnsFinalAssistantMessage 1.503 s
testSendAndWaitThrowsOnTimeout 1.457 s
testShouldAbortSession 1.561 s
testShouldCreateSessionWithAvailableTools 1.411 s
testListSessionsIncludesContextWhenAvailable 0.820 s
testShouldCreateSessionWithCustomConfigDir 1.457 s
testShouldCreateSessionWithAppendedSystemMessageConfig 1.468 s
testShouldCreateSessionWithCustomTool 1.564 s
testShouldThrowErrorWhenResumingNonExistentSession 0.785 s
testShouldHaveStatefulConversation 1.552 s
testShouldReceiveSessionEvents 1.480 s
testShouldResumeSessionUsingTheSameClient 1.540 s
testShouldCreateSessionWithExcludedTools 1.468 s
testShouldCreateSessionWithReplacedSystemMessageConfig 1.389 s
testShouldResumeSessionUsingNewClient 2.966 s
testSessionListFilterFluentAPI 0.836 s
testSendReturnsImmediatelyWhileEventsStreamInBackground 3.840 s

ForwardCompatibilityTest

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

LifecycleEventManagerTest

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

ToolInvocationTest

testGetArgumentsWhenNull 0.002 s
testGetArgumentsAsWithRecord 0.023 s
testGetArgumentsAsWithPojo 0.006 s
testGetArgumentsAsThrowsOnInvalidType 0.003 s
testGetArgumentsReturnsMap 0.009 s
testGettersReturnSetValues 0.001 s