Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,572 in github.com/cli/cli
⨍
Functions
7,572
◇
Types & classes
1,537
Function
TestStartJupyterServerSuccess
Test that the RPC invoker returns the correct port and URL when the JupyterLab server starts successfully
internal/codespaces/rpc/invoker_test.go:107
Function
TestStartProgressIndicatorWithLabel
(t *testing.T)
pkg/iostreams/iostreams_progress_indicator_test.go:19
Function
TestStartSSHServerFailure
Test that the RPC invoker returns an error when the SSH server fails to start
internal/codespaces/rpc/invoker_test.go:284
Function
TestStartSSHServerSuccess
Test that the RPC invoker returns the correct port and user when the SSH server starts successfully
internal/codespaces/rpc/invoker_test.go:250
Function
TestStatusRun
(t *testing.T)
pkg/cmd/status/status_test.go:87
Function
TestStopAlternateScreenBuffer
(t *testing.T)
pkg/iostreams/iostreams_test.go:10
Function
TestStripControl_dropsC0KeepsWhitespace
(t *testing.T)
pkg/iostreams/untrusted_test.go:49
Function
TestStructExportData
(t *testing.T)
pkg/cmdutil/json_flags_test.go:404
Function
TestSubscriptionResponseBody
(t *testing.T)
pkg/cmd/event/client/client_test.go:392
Function
TestSuggestedReviewerActors
(t *testing.T)
api/queries_pr_test.go:176
Function
TestSuggestedReviewerActorsForRepo
(t *testing.T)
api/queries_pr_test.go:419
Function
TestSupportsAttachments
(t *testing.T)
pkg/cmd/issue/artifact/shared/shared_test.go:922
Function
TestSurveyPrompter
(t *testing.T)
internal/prompter/accessible_prompter_test.go:812
Function
TestSwapDirectoryContents_PreservesDestInode
The skill directory's own inode must survive an update so symlinks, bind mounts, and other external references pointing at it remain valid. Per-entry
pkg/cmd/skills/update/update_test.go:1634
Function
TestSwapDirectoryContents_RollsBackOnFailure
If the staged contents cannot be installed after the existing entries have already been moved aside, the original skill directory must be restored byt
pkg/cmd/skills/update/update_test.go:1583
Function
TestSwitchClearsActiveInsecureTokenWhenSwitchingToSecureUser
(t *testing.T)
internal/config/auth_config_test.go:606
Function
TestSwitchClearsActiveSecureTokenWhenSwitchingToInsecureUser
(t *testing.T)
internal/config/auth_config_test.go:590
Function
TestSwitchRun
(t *testing.T)
pkg/cmd/auth/switch/switch_test.go:86
Function
TestSwitchUserActivatesRefreshableCredential
(t *testing.T)
internal/config/refreshable_test.go:661
Function
TestSwitchUserErrorsAndRestoresUserAndInsecureConfigUnderFailure
(t *testing.T)
internal/config/auth_config_test.go:536
Function
TestSwitchUserErrorsAndRestoresUserAndKeyringUnderFailure
(t *testing.T)
internal/config/auth_config_test.go:563
Function
TestSwitchUserErrorsImmediatelyIfTheActiveTokenComesFromEnvironment
(t *testing.T)
internal/config/auth_config_test.go:520
Function
TestSwitchUserMakesInsecureTokenActive
(t *testing.T)
internal/config/auth_config_test.go:485
Function
TestSwitchUserMakesSecureTokenActive
(t *testing.T)
internal/config/auth_config_test.go:468
Function
TestSwitchUserUpdatesTheActiveUser
(t *testing.T)
internal/config/auth_config_test.go:503
Function
TestTableHeader
(t *testing.T)
pkg/iostreams/color_test.go:78
Function
TestTelemetry
(t *testing.T)
internal/config/config_test.go:189
Function
TestTemplateManagerSelect
(t *testing.T)
pkg/cmd/pr/shared/templates_test.go:119
Function
TestTemplateManager_hasAPI
(t *testing.T)
pkg/cmd/pr/shared/templates_test.go:16
Function
TestTemplateManager_hasAPI_PullRequest
(t *testing.T)
pkg/cmd/pr/shared/templates_test.go:68
Function
TestTenantName
(t *testing.T)
internal/ghinstance/host_test.go:9
Function
TestTitleSurvey
(t *testing.T)
pkg/cmd/pr/shared/survey_test.go:223
Function
TestTitledEditSurvey_cleanupHint
(t *testing.T)
pkg/cmd/pr/shared/survey_test.go:188
Function
TestToFilterState
(t *testing.T)
pkg/cmd/discussion/list/list_test.go:691
Function
TestTokenForUserInsecureLogin
(t *testing.T)
internal/config/auth_config_test.go:662
Function
TestTokenForUserNotFoundErrors
(t *testing.T)
internal/config/auth_config_test.go:677
Function
TestTokenForUserResolution
(t *testing.T)
internal/config/refreshable_test.go:151
Function
TestTokenForUserSecureLogin
(t *testing.T)
internal/config/auth_config_test.go:647
Function
TestTokenForUserWithRefresh
(t *testing.T)
internal/config/refreshable_test.go:1352
Function
TestTokenFromKeyring
(t *testing.T)
internal/config/auth_config_test.go:32
Function
TestTokenFromKeyringForUser
(t *testing.T)
internal/config/auth_config_test.go:45
Function
TestTokenFromKeyringForUserErrorsIfUsernameIsBlank
(t *testing.T)
internal/config/auth_config_test.go:58
Function
TestTokenFromKeyringNonExistent
(t *testing.T)
internal/config/auth_config_test.go:140
Function
TestTokenHasUserCapability
(t *testing.T)
acceptance/user_capability_test.go:131
Function
TestTokenHasWorkflowScope
(t *testing.T)
pkg/cmd/release/create/http_test.go:110
Function
TestTokenPrioritizesActiveUserToken
(t *testing.T)
internal/config/auth_config_test.go:792
Function
TestTokenRefresherHttpClient
(t *testing.T)
pkg/cmd/factory/default_test.go:407
Function
TestTokenRefresherRefresh
(t *testing.T)
internal/authflow/refresh_test.go:44
Function
TestTokenRefresherRefreshNoExpiry
(t *testing.T)
internal/authflow/refresh_test.go:84
Function
TestTokenRefresherRefreshOmittedRefreshToken
(t *testing.T)
internal/authflow/refresh_test.go:101
Function
TestTokenRefresherRefreshRejected
(t *testing.T)
internal/authflow/refresh_test.go:115
Function
TestTokenRun
(t *testing.T)
pkg/cmd/auth/token/token_test.go:106
Function
TestTokenRunRefresh
(t *testing.T)
pkg/cmd/auth/token/token_test.go:559
Function
TestTokenRunSecureStorage
(t *testing.T)
pkg/cmd/auth/token/token_test.go:254
Function
TestTokenStoredInConfig
(t *testing.T)
internal/config/auth_config_test.go:92
Function
TestTokenStoredInEnv
(t *testing.T)
internal/config/auth_config_test.go:109
Function
TestTokenStoredInKeyring
(t *testing.T)
internal/config/auth_config_test.go:124
Function
TestTokenWithActiveUserNotInKeyringFallsBackToBlank
(t *testing.T)
internal/config/auth_config_test.go:858
Function
TestTokenWorksRightAfterMigration
(t *testing.T)
internal/config/auth_config_test.go:774
Function
TestTryDetermineDefaultPRHead
(t *testing.T)
pkg/cmd/pr/shared/find_refs_resolution_test.go:255
Function
TestTryLock
(t *testing.T)
internal/flock/flock_test.go:15
Function
TestUnexpectedStatusError
(t *testing.T)
api/client_test.go:439
Function
TestUniqueProjectDirs
(t *testing.T)
internal/skills/registry/registry_test.go:327
Function
TestUnpinRun
(t *testing.T)
pkg/cmd/issue/unpin/unpin_test.go:21
Function
TestUntilCodespaceConnectionReady_DoesntStartTwice
(t *testing.T)
internal/codespaces/codespaces_test.go:185
Function
TestUntrustedBytes_roundTrip
(t *testing.T)
pkg/iostreams/untrusted_test.go:44
Function
TestUntrusted_Empty
(t *testing.T)
pkg/iostreams/untrusted_test.go:76
Function
TestUntrusted_Raw_returnsExactBytes
(t *testing.T)
pkg/iostreams/untrusted_test.go:37
Function
TestUntrusted_String_sanitizes
(t *testing.T)
pkg/iostreams/untrusted_test.go:14
Function
TestUntrusted_fmt_paths_never_leak
The property that drove the design: fmt reflection must not leak the raw bytes through any verb. Because Untrusted implements Stringer, %s, %v, and th
pkg/iostreams/untrusted_test.go:22
Function
TestUntrusted_jsonRoundTrip
(t *testing.T)
pkg/iostreams/untrusted_test.go:66
Function
TestUntrusted_survivesJSONDecode
The showcase property: an Untrusted struct field is populated by json.Unmarshal with provenance intact, so printing it later sanitizes even though the
pkg/iostreams/untrusted_test.go:56
Function
TestUpdate
(t *testing.T)
pkg/cmd/discussion/client/client_test.go:3126
Function
TestUpdate
(t *testing.T)
pkg/cmd/issue/artifact/client/client_test.go:707
Function
TestUpdateAddsNewCredentials
(t *testing.T)
pkg/cmd/auth/shared/gitcredentials/updater_test.go:44
Function
TestUpdateAvailable
(t *testing.T)
pkg/cmd/extension/extension_test.go:45
Function
TestUpdateAvailable_CurrentVersionIsLatestVersion
(t *testing.T)
pkg/cmd/extension/extension_test.go:35
Function
TestUpdateAvailable_IsLocal
(t *testing.T)
pkg/cmd/extension/extension_test.go:10
Function
TestUpdateAvailable_NoCurrentVersion
(t *testing.T)
pkg/cmd/extension/extension_test.go:18
Function
TestUpdateAvailable_NoLatestVersion
(t *testing.T)
pkg/cmd/extension/extension_test.go:26
Function
TestUpdateBranchInSingleWorktreeRepository
(t *testing.T)
pkg/cmd/repo/sync/sync_test.go:223
Function
TestUpdateComment
(t *testing.T)
pkg/cmd/discussion/client/client_test.go:3547
Function
TestUpdateProjectV2Items
(t *testing.T)
api/queries_projects_v2_test.go:17
Function
TestUpdateReplacesOldCredentials
(t *testing.T)
pkg/cmd/auth/shared/gitcredentials/updater_test.go:65
Function
TestUpdateRun
(t *testing.T)
pkg/cmd/skills/update/update_test.go:337
Function
TestUpload
(t *testing.T)
internal/attachments/client_test.go:63
Function
TestUploadAuthentication
(t *testing.T)
internal/attachments/client_test.go:111
Function
TestUploadDeployKeyHTTPError
(t *testing.T)
pkg/cmd/repo/deploy-key/add/add_test.go:91
Function
TestUploadErrors
(t *testing.T)
internal/attachments/client_test.go:165
Function
TestUploadHostForTenant
(t *testing.T)
internal/attachments/client_test.go:94
Function
TestUploadMissingFile
A file can be removed between the validation that accepted it and the upload that opens it, which is the only way a resolved asset reaches the endpoin
internal/attachments/client_test.go:356
Function
TestUploadTarget
(t *testing.T)
pkg/cmd/issue/artifact/client/client_test.go:83
Function
TestUploaderUploadAndAttach
(t *testing.T)
internal/attachments/attach_test.go:38
Function
TestUploaderUploadAndAttachAbsolutePathReference
(t *testing.T)
internal/attachments/attach_test.go:591
Function
TestUploaderUploadAndAttachDocuments
(t *testing.T)
internal/attachments/attach_test.go:259
Function
TestUploaderUploadAndAttachDoesNotLeakTheAssetURLIntoAnError
(t *testing.T)
internal/attachments/attach_test.go:564
Function
TestUploaderUploadAndAttachNoAssets
(t *testing.T)
internal/attachments/attach_test.go:530
Function
TestUploaderUploadAndAttachUploadsOnceForRepeatedReferences
(t *testing.T)
internal/attachments/attach_test.go:508
Function
TestUserAssetUploadPrefix
(t *testing.T)
internal/ghinstance/host_test.go:161
Function
TestUserKeysHTTPError
(t *testing.T)
pkg/cmd/ssh-key/shared/user_keys_test.go:13
← previous
next →
6,801–6,900 of 7,572, ranked by callers