Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ functions
Functions
7,487 in github.com/cli/cli
⨍
Functions
7,487
◇
Types & classes
1,526
Function
TestSignerWorkflowSANMatchingPinnedRef
TestSignerWorkflowSANMatchingPinnedRef covers a --signer-workflow value that pins a ref as well as a workflow. Such a value has to match the end of th
pkg/cmd/attestation/verify/policy_test.go:438
Function
TestSignerWorkflowSANMatchingRepositoryValue
TestSignerWorkflowSANMatchingRepositoryValue covers a --signer-workflow value that names a repository instead of a workflow. The value is still matche
pkg/cmd/attestation/verify/policy_test.go:510
Function
TestSimplifyURL
(t *testing.T)
pkg/cmd/repo/clone/clone_test.go:512
Function
TestSingleLineFieldValue
(t *testing.T)
pkg/cmd/project/shared/queries/queries_test.go:851
Function
TestSkillCommandsAreSampledAt100
(t *testing.T)
pkg/cmd/skills/skills_test.go:13
Function
TestSkillSearchFuncTruncatesLabelsToAvailableWidth
(t *testing.T)
pkg/cmd/skills/install/install_test.go:2575
Function
TestSomeExpect
(t *testing.T)
pkg/option/option_test.go:183
Function
TestSomeStringer
(t *testing.T)
pkg/option/option_test.go:115
Function
TestSomeUnwrap
(t *testing.T)
pkg/option/option_test.go:124
Function
TestSomeUnwrapOr
(t *testing.T)
pkg/option/option_test.go:137
Function
TestSomeUnwrapOrElse
(t *testing.T)
pkg/option/option_test.go:145
Function
TestSomeUnwrapOrZero
(t *testing.T)
pkg/option/option_test.go:153
Function
TestSomeValue
(t *testing.T)
pkg/option/option_test.go:171
Function
TestSpawnSendTelemetryRejectsOversizedPayload
(t *testing.T)
internal/telemetry/telemetry_test.go:535
Function
TestSpecificPRResolver
(t *testing.T)
pkg/cmd/pr/checkout/checkout_test.go:758
Function
TestSplitFileArg
(t *testing.T)
internal/attachments/flags_test.go:399
Function
TestStandardSearchString
(t *testing.T)
pkg/search/query_test.go:11
Function
TestStartJupyterServerFailure
Test that the RPC invoker returns an error when the JupyterLab server fails to start
internal/codespaces/rpc/invoker_test.go:141
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:356
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:1300
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:1249
Function
TestSwitchClearsActiveInsecureTokenWhenSwitchingToSecureUser
(t *testing.T)
internal/config/auth_config_test.go:604
Function
TestSwitchClearsActiveSecureTokenWhenSwitchingToInsecureUser
(t *testing.T)
internal/config/auth_config_test.go:588
Function
TestSwitchRun
(t *testing.T)
pkg/cmd/auth/switch/switch_test.go:86
Function
TestSwitchUserActivatesRefreshableCredential
(t *testing.T)
internal/config/refreshable_test.go:500
Function
TestSwitchUserErrorsAndRestoresUserAndInsecureConfigUnderFailure
(t *testing.T)
internal/config/auth_config_test.go:534
Function
TestSwitchUserErrorsAndRestoresUserAndKeyringUnderFailure
(t *testing.T)
internal/config/auth_config_test.go:561
Function
TestSwitchUserErrorsImmediatelyIfTheActiveTokenComesFromEnvironment
(t *testing.T)
internal/config/auth_config_test.go:518
Function
TestSwitchUserMakesInsecureTokenActive
(t *testing.T)
internal/config/auth_config_test.go:483
Function
TestSwitchUserMakesSecureTokenActive
(t *testing.T)
internal/config/auth_config_test.go:466
Function
TestSwitchUserUpdatesTheActiveUser
(t *testing.T)
internal/config/auth_config_test.go:501
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:660
Function
TestTokenForUserNotFoundErrors
(t *testing.T)
internal/config/auth_config_test.go:675
Function
TestTokenForUserResolution
(t *testing.T)
internal/config/refreshable_test.go:151
Function
TestTokenForUserSecureLogin
(t *testing.T)
internal/config/auth_config_test.go:645
Function
TestTokenForUserWithRefresh
(t *testing.T)
internal/config/refreshable_test.go:1105
Function
TestTokenFromKeyring
(t *testing.T)
internal/config/auth_config_test.go:30
Function
TestTokenFromKeyringForUser
(t *testing.T)
internal/config/auth_config_test.go:43
Function
TestTokenFromKeyringForUserErrorsIfUsernameIsBlank
(t *testing.T)
internal/config/auth_config_test.go:56
Function
TestTokenFromKeyringNonExistent
(t *testing.T)
internal/config/auth_config_test.go:138
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:790
Function
TestTokenRefresherHttpClient
(t *testing.T)
pkg/cmd/factory/default_test.go:404
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:90
Function
TestTokenStoredInEnv
(t *testing.T)
internal/config/auth_config_test.go:107
Function
TestTokenStoredInKeyring
(t *testing.T)
internal/config/auth_config_test.go:122
Function
TestTokenWithActiveUserNotInKeyringFallsBackToBlank
(t *testing.T)
internal/config/auth_config_test.go:856
Function
TestTokenWorksRightAfterMigration
(t *testing.T)
internal/config/auth_config_test.go:772
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:310
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
← previous
next →
6,701–6,800 of 7,487, ranked by callers