MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

FunctionTestSignerWorkflowSANMatchingPinnedRef
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
FunctionTestSignerWorkflowSANMatchingRepositoryValue
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
FunctionTestSimplifyURL
(t *testing.T)
pkg/cmd/repo/clone/clone_test.go:512
FunctionTestSingleLineFieldValue
(t *testing.T)
pkg/cmd/project/shared/queries/queries_test.go:851
FunctionTestSkillCommandsAreSampledAt100
(t *testing.T)
pkg/cmd/skills/skills_test.go:13
FunctionTestSkillSearchFuncTruncatesLabelsToAvailableWidth
(t *testing.T)
pkg/cmd/skills/install/install_test.go:2575
FunctionTestSomeExpect
(t *testing.T)
pkg/option/option_test.go:183
FunctionTestSomeStringer
(t *testing.T)
pkg/option/option_test.go:115
FunctionTestSomeUnwrap
(t *testing.T)
pkg/option/option_test.go:124
FunctionTestSomeUnwrapOr
(t *testing.T)
pkg/option/option_test.go:137
FunctionTestSomeUnwrapOrElse
(t *testing.T)
pkg/option/option_test.go:145
FunctionTestSomeUnwrapOrZero
(t *testing.T)
pkg/option/option_test.go:153
FunctionTestSomeValue
(t *testing.T)
pkg/option/option_test.go:171
FunctionTestSpawnSendTelemetryRejectsOversizedPayload
(t *testing.T)
internal/telemetry/telemetry_test.go:535
FunctionTestSpecificPRResolver
(t *testing.T)
pkg/cmd/pr/checkout/checkout_test.go:758
FunctionTestSplitFileArg
(t *testing.T)
internal/attachments/flags_test.go:399
FunctionTestStandardSearchString
(t *testing.T)
pkg/search/query_test.go:11
FunctionTestStartJupyterServerFailure
Test that the RPC invoker returns an error when the JupyterLab server fails to start
internal/codespaces/rpc/invoker_test.go:141
FunctionTestStartJupyterServerSuccess
Test that the RPC invoker returns the correct port and URL when the JupyterLab server starts successfully
internal/codespaces/rpc/invoker_test.go:107
FunctionTestStartProgressIndicatorWithLabel
(t *testing.T)
pkg/iostreams/iostreams_progress_indicator_test.go:19
FunctionTestStartSSHServerFailure
Test that the RPC invoker returns an error when the SSH server fails to start
internal/codespaces/rpc/invoker_test.go:284
FunctionTestStartSSHServerSuccess
Test that the RPC invoker returns the correct port and user when the SSH server starts successfully
internal/codespaces/rpc/invoker_test.go:250
FunctionTestStatusRun
(t *testing.T)
pkg/cmd/status/status_test.go:87
FunctionTestStopAlternateScreenBuffer
(t *testing.T)
pkg/iostreams/iostreams_test.go:10
FunctionTestStripControl_dropsC0KeepsWhitespace
(t *testing.T)
pkg/iostreams/untrusted_test.go:49
FunctionTestStructExportData
(t *testing.T)
pkg/cmdutil/json_flags_test.go:404
FunctionTestSubscriptionResponseBody
(t *testing.T)
pkg/cmd/event/client/client_test.go:356
FunctionTestSuggestedReviewerActors
(t *testing.T)
api/queries_pr_test.go:176
FunctionTestSuggestedReviewerActorsForRepo
(t *testing.T)
api/queries_pr_test.go:419
FunctionTestSupportsAttachments
(t *testing.T)
pkg/cmd/issue/artifact/shared/shared_test.go:922
FunctionTestSurveyPrompter
(t *testing.T)
internal/prompter/accessible_prompter_test.go:812
FunctionTestSwapDirectoryContents_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
FunctionTestSwapDirectoryContents_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
FunctionTestSwitchClearsActiveInsecureTokenWhenSwitchingToSecureUser
(t *testing.T)
internal/config/auth_config_test.go:604
FunctionTestSwitchClearsActiveSecureTokenWhenSwitchingToInsecureUser
(t *testing.T)
internal/config/auth_config_test.go:588
FunctionTestSwitchRun
(t *testing.T)
pkg/cmd/auth/switch/switch_test.go:86
FunctionTestSwitchUserActivatesRefreshableCredential
(t *testing.T)
internal/config/refreshable_test.go:500
FunctionTestSwitchUserErrorsAndRestoresUserAndInsecureConfigUnderFailure
(t *testing.T)
internal/config/auth_config_test.go:534
FunctionTestSwitchUserErrorsAndRestoresUserAndKeyringUnderFailure
(t *testing.T)
internal/config/auth_config_test.go:561
FunctionTestSwitchUserErrorsImmediatelyIfTheActiveTokenComesFromEnvironment
(t *testing.T)
internal/config/auth_config_test.go:518
FunctionTestSwitchUserMakesInsecureTokenActive
(t *testing.T)
internal/config/auth_config_test.go:483
FunctionTestSwitchUserMakesSecureTokenActive
(t *testing.T)
internal/config/auth_config_test.go:466
FunctionTestSwitchUserUpdatesTheActiveUser
(t *testing.T)
internal/config/auth_config_test.go:501
FunctionTestTableHeader
(t *testing.T)
pkg/iostreams/color_test.go:78
FunctionTestTelemetry
(t *testing.T)
internal/config/config_test.go:189
FunctionTestTemplateManagerSelect
(t *testing.T)
pkg/cmd/pr/shared/templates_test.go:119
FunctionTestTemplateManager_hasAPI
(t *testing.T)
pkg/cmd/pr/shared/templates_test.go:16
FunctionTestTemplateManager_hasAPI_PullRequest
(t *testing.T)
pkg/cmd/pr/shared/templates_test.go:68
FunctionTestTenantName
(t *testing.T)
internal/ghinstance/host_test.go:9
FunctionTestTitleSurvey
(t *testing.T)
pkg/cmd/pr/shared/survey_test.go:223
FunctionTestTitledEditSurvey_cleanupHint
(t *testing.T)
pkg/cmd/pr/shared/survey_test.go:188
FunctionTestToFilterState
(t *testing.T)
pkg/cmd/discussion/list/list_test.go:691
FunctionTestTokenForUserInsecureLogin
(t *testing.T)
internal/config/auth_config_test.go:660
FunctionTestTokenForUserNotFoundErrors
(t *testing.T)
internal/config/auth_config_test.go:675
FunctionTestTokenForUserResolution
(t *testing.T)
internal/config/refreshable_test.go:151
FunctionTestTokenForUserSecureLogin
(t *testing.T)
internal/config/auth_config_test.go:645
FunctionTestTokenForUserWithRefresh
(t *testing.T)
internal/config/refreshable_test.go:1105
FunctionTestTokenFromKeyring
(t *testing.T)
internal/config/auth_config_test.go:30
FunctionTestTokenFromKeyringForUser
(t *testing.T)
internal/config/auth_config_test.go:43
FunctionTestTokenFromKeyringForUserErrorsIfUsernameIsBlank
(t *testing.T)
internal/config/auth_config_test.go:56
FunctionTestTokenFromKeyringNonExistent
(t *testing.T)
internal/config/auth_config_test.go:138
FunctionTestTokenHasUserCapability
(t *testing.T)
acceptance/user_capability_test.go:131
FunctionTestTokenHasWorkflowScope
(t *testing.T)
pkg/cmd/release/create/http_test.go:110
FunctionTestTokenPrioritizesActiveUserToken
(t *testing.T)
internal/config/auth_config_test.go:790
FunctionTestTokenRefresherHttpClient
(t *testing.T)
pkg/cmd/factory/default_test.go:404
FunctionTestTokenRefresherRefresh
(t *testing.T)
internal/authflow/refresh_test.go:44
FunctionTestTokenRefresherRefreshNoExpiry
(t *testing.T)
internal/authflow/refresh_test.go:84
FunctionTestTokenRefresherRefreshOmittedRefreshToken
(t *testing.T)
internal/authflow/refresh_test.go:101
FunctionTestTokenRefresherRefreshRejected
(t *testing.T)
internal/authflow/refresh_test.go:115
FunctionTestTokenRun
(t *testing.T)
pkg/cmd/auth/token/token_test.go:106
FunctionTestTokenRunRefresh
(t *testing.T)
pkg/cmd/auth/token/token_test.go:559
FunctionTestTokenRunSecureStorage
(t *testing.T)
pkg/cmd/auth/token/token_test.go:254
FunctionTestTokenStoredInConfig
(t *testing.T)
internal/config/auth_config_test.go:90
FunctionTestTokenStoredInEnv
(t *testing.T)
internal/config/auth_config_test.go:107
FunctionTestTokenStoredInKeyring
(t *testing.T)
internal/config/auth_config_test.go:122
FunctionTestTokenWithActiveUserNotInKeyringFallsBackToBlank
(t *testing.T)
internal/config/auth_config_test.go:856
FunctionTestTokenWorksRightAfterMigration
(t *testing.T)
internal/config/auth_config_test.go:772
FunctionTestTryDetermineDefaultPRHead
(t *testing.T)
pkg/cmd/pr/shared/find_refs_resolution_test.go:255
FunctionTestTryLock
(t *testing.T)
internal/flock/flock_test.go:15
FunctionTestUnexpectedStatusError
(t *testing.T)
api/client_test.go:439
FunctionTestUniqueProjectDirs
(t *testing.T)
internal/skills/registry/registry_test.go:310
FunctionTestUnpinRun
(t *testing.T)
pkg/cmd/issue/unpin/unpin_test.go:21
FunctionTestUntilCodespaceConnectionReady_DoesntStartTwice
(t *testing.T)
internal/codespaces/codespaces_test.go:185
FunctionTestUntrustedBytes_roundTrip
(t *testing.T)
pkg/iostreams/untrusted_test.go:44
FunctionTestUntrusted_Empty
(t *testing.T)
pkg/iostreams/untrusted_test.go:76
FunctionTestUntrusted_Raw_returnsExactBytes
(t *testing.T)
pkg/iostreams/untrusted_test.go:37
FunctionTestUntrusted_String_sanitizes
(t *testing.T)
pkg/iostreams/untrusted_test.go:14
FunctionTestUntrusted_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
FunctionTestUntrusted_jsonRoundTrip
(t *testing.T)
pkg/iostreams/untrusted_test.go:66
FunctionTestUntrusted_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
FunctionTestUpdate
(t *testing.T)
pkg/cmd/discussion/client/client_test.go:3126
FunctionTestUpdate
(t *testing.T)
pkg/cmd/issue/artifact/client/client_test.go:707
FunctionTestUpdateAddsNewCredentials
(t *testing.T)
pkg/cmd/auth/shared/gitcredentials/updater_test.go:44
FunctionTestUpdateAvailable
(t *testing.T)
pkg/cmd/extension/extension_test.go:45
FunctionTestUpdateAvailable_CurrentVersionIsLatestVersion
(t *testing.T)
pkg/cmd/extension/extension_test.go:35
FunctionTestUpdateAvailable_IsLocal
(t *testing.T)
pkg/cmd/extension/extension_test.go:10
FunctionTestUpdateAvailable_NoCurrentVersion
(t *testing.T)
pkg/cmd/extension/extension_test.go:18
FunctionTestUpdateAvailable_NoLatestVersion
(t *testing.T)
pkg/cmd/extension/extension_test.go:26
FunctionTestUpdateBranchInSingleWorktreeRepository
(t *testing.T)
pkg/cmd/repo/sync/sync_test.go:223
FunctionTestUpdateComment
(t *testing.T)
pkg/cmd/discussion/client/client_test.go:3547
← previousnext →6,701–6,800 of 7,487, ranked by callers