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
TestListRun
(t *testing.T)
pkg/cmd/run/list/list_test.go:139
Function
TestListRun
(t *testing.T)
pkg/cmd/event/subscription/list/list_test.go:100
Function
TestListRun
(t *testing.T)
pkg/cmd/workflow/list/list_test.go:89
Function
TestListRunDefaultHost
(t *testing.T)
pkg/cmd/event/subscription/list/list_test.go:225
Function
TestListSessionsByResourceID
(t *testing.T)
pkg/cmd/agent-task/capi/sessions_test.go:1199
Function
TestListSessionsByResourceIDRequiresResource
(t *testing.T)
pkg/cmd/agent-task/capi/sessions_test.go:1188
Function
TestListSkillFiles
(t *testing.T)
internal/skills/discovery/discovery_test.go:1671
Function
TestListSubscriptions
(t *testing.T)
pkg/cmd/event/client/client_test.go:87
Function
TestListSubscriptionsDecodesFields
(t *testing.T)
pkg/cmd/event/client/client_test.go:173
Function
TestListenRun
(t *testing.T)
pkg/cmd/event/listen/listen_test.go:219
Function
TestListenRunBackoffResetsOnlyAfterDelivery
(t *testing.T)
pkg/cmd/event/listen/listen_test.go:602
Function
TestListenRunResourceHost
(t *testing.T)
pkg/cmd/event/listen/listen_test.go:773
Function
TestListenTCPInterfaces
(t *testing.T)
internal/codespaces/codespaces_test.go:15
Function
TestLiveFixtureRepositoryClientUsesAPIHost
(t *testing.T)
acceptance/fixture_repository_test.go:270
Function
TestLiveSigstoreVerifier
(t *testing.T)
pkg/cmd/attestation/verification/sigstore_integration_test.go:19
Function
TestLiveSigstoreVerifier_noVerifierSet
(t *testing.T)
pkg/cmd/attestation/verification/sigstore_test.go:58
Function
TestLoadBundleFromJSONFile
(t *testing.T)
pkg/cmd/attestation/verification/attestation_test.go:58
Function
TestLoadBundlesFromJSONLinesFile
(t *testing.T)
pkg/cmd/attestation/verification/attestation_test.go:16
Function
TestLoadBundlesFromJSONLinesFile_RejectEmptyJSONLFile
(t *testing.T)
pkg/cmd/attestation/verification/attestation_test.go:45
Function
TestLockAcquiresWhenFree
(t *testing.T)
internal/flock/flock_test.go:103
Function
TestLockBlocksUntilUnlocked
(t *testing.T)
internal/flock/flock_test.go:112
Function
TestLockReturnsNonContentionError
(t *testing.T)
internal/flock/flock_test.go:141
Function
TestLockTimesOutUnderContention
(t *testing.T)
internal/flock/flock_test.go:148
Function
TestLogFlusherWritesNoneMarkerForEmptyPayload
(t *testing.T)
internal/telemetry/telemetry_test.go:333
Function
TestLogin
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:156
Function
TestLoginAcquiresRefreshLock
(t *testing.T)
internal/config/refreshable_test.go:579
Function
TestLoginAddsHostIfNotAlreadyAdded
(t *testing.T)
internal/config/auth_config_test.go:348
Function
TestLoginAddsUserToConfigWithoutGitProtocolAndWithSecureStorage
This test mimics the behaviour of logging in with a token, not providing a git protocol, and using secure storage.
internal/config/auth_config_test.go:363
Function
TestLoginFailsWhenOtherCredentialKindSurvivesPurge
TestLoginFailsWhenOtherCredentialKindSurvivesPurge covers the purge post-condition checks: an OS keyring can report a delete as successful while the s
internal/config/refreshable_test.go:840
Function
TestLoginInsecurePostMigrationUsesConfigForToken
(t *testing.T)
internal/config/auth_config_test.go:898
Function
TestLoginInsecureStorage
(t *testing.T)
internal/config/auth_config_test.go:305
Function
TestLoginPostMigrationSetsGitProtocol
(t *testing.T)
internal/config/auth_config_test.go:918
Function
TestLoginPostMigrationSetsUser
(t *testing.T)
internal/config/auth_config_test.go:937
Function
TestLoginProceedsWhenRefreshLockCannotBeAcquired
(t *testing.T)
internal/config/refreshable_test.go:597
Function
TestLoginPurgesRefreshableRecord
TestLoginPurgesRefreshableRecord is the inverse of TestLoginRefreshablePurgesNonExpiringLogin: logging in with a non-refreshable token must remove the
internal/config/refreshable_test.go:808
Function
TestLoginRefreshable
(t *testing.T)
internal/config/refreshable_test.go:682
Function
TestLoginRefreshablePurgesNonExpiringKeyringLogin
TestLoginRefreshablePurgesNonExpiringKeyringLogin covers the keyring arm of the non-expiring purge. Resolution now probes the ordinary keyring before
internal/config/refreshable_test.go:785
Function
TestLoginRefreshablePurgesNonExpiringLogin
(t *testing.T)
internal/config/refreshable_test.go:764
Function
TestLoginRefreshableRejectsInvalidCredential
(t *testing.T)
internal/config/refreshable_test.go:740
Function
TestLoginReloadsFreshConfigBeforeMutating
(t *testing.T)
internal/config/refreshable_test.go:619
Function
TestLoginSecurePostMigrationRemovesTokenFromConfig
(t *testing.T)
internal/config/auth_config_test.go:956
Function
TestLoginSecureStorageRemovesOldInsecureConfigToken
(t *testing.T)
internal/config/auth_config_test.go:277
Function
TestLoginSecureStorageUsesKeyring
(t *testing.T)
internal/config/auth_config_test.go:254
Function
TestLoginSecureStorageWithErrorFallsbackAndReports
(t *testing.T)
internal/config/auth_config_test.go:290
Function
TestLoginSetsGitProtocolForProvidedHost
(t *testing.T)
internal/config/auth_config_test.go:334
Function
TestLoginSetsUserForProvidedHost
(t *testing.T)
internal/config/auth_config_test.go:319
Function
TestLoginSucceedsWhenKeyringUnavailable
(t *testing.T)
internal/config/refreshable_test.go:644
Function
TestLogin_doesNotRecordAuthTelemetryForEnterprise
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:894
Function
TestLogin_pastedTokenIgnoresConfiguredExpiringPreference
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:629
Function
TestLogin_recordsAuthTelemetry
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:687
Function
TestLogin_recordsAuthTelemetryOnFailure
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:743
Function
TestLogin_recordsExpiringSetupCancelled
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:845
Function
TestLogoutAcquiresRefreshLock
(t *testing.T)
internal/config/refreshable_test.go:372
Function
TestLogoutIgnoresErrorsFromConfigAndKeyring
Note that I'm not sure this test enforces particularly desirable behaviour since it leads users to believe a token has been removed when really that m
internal/config/auth_config_test.go:455
Function
TestLogoutOfActiveUserSwitchesUserIfPossible
(t *testing.T)
internal/config/auth_config_test.go:400
Function
TestLogoutOfInactiveUserDoesNotSwitchUser
(t *testing.T)
internal/config/auth_config_test.go:426
Function
TestLogoutReloadsFreshConfigBeforeRemovingCredentials
(t *testing.T)
internal/config/refreshable_test.go:552
Function
TestLogoutRemovesAllUserCredentialRecords
(t *testing.T)
internal/config/refreshable_test.go:328
Function
TestLogoutRemovesHostAndKeyringToken
(t *testing.T)
internal/config/auth_config_test.go:377
Function
TestLogoutRightAfterMigrationRemovesHost
(t *testing.T)
internal/config/auth_config_test.go:877
Function
TestLogoutWithCredential
(t *testing.T)
internal/config/refreshable_test.go:391
Function
TestMain
TestMain lets the test binary stand in for gh. runBinary starts gh with an environment built from scratch, so a small wrapper script sets GHMOCK_FAKE_
script/ghmock/run_test.go:30
Function
TestMain
(m *testing.M)
acceptance/acceptance_test.go:226
Function
TestManPrintFlagsHidesShortDeprecated
(t *testing.T)
internal/docs/man_test.go:157
Function
TestManPrintFlagsShowsDefaultValues
(t *testing.T)
internal/docs/man_test.go:189
Function
TestManagedFixtureRejectsRepositoryCreation
(t *testing.T)
acceptance/fixture_repository_test.go:327
Function
TestManager_Create
(t *testing.T)
pkg/cmd/extension/manager_test.go:1362
Function
TestManager_Create_go_binary
(t *testing.T)
pkg/cmd/extension/manager_test.go:1391
Function
TestManager_Create_other_binary
(t *testing.T)
pkg/cmd/extension/manager_test.go:1442
Function
TestManager_Dispatch
(t *testing.T)
pkg/cmd/extension/manager_test.go:147
Function
TestManager_Dispatch_binary
(t *testing.T)
pkg/cmd/extension/manager_test.go:176
Function
TestManager_Dispatch_ghExtensionEnv
(t *testing.T)
pkg/cmd/extension/manager_test.go:201
Function
TestManager_Install_amd64_when_supported
(t *testing.T)
pkg/cmd/extension/manager_test.go:1260
Function
TestManager_Install_binary
(t *testing.T)
pkg/cmd/extension/manager_test.go:1189
Function
TestManager_Install_binary_pinned
(t *testing.T)
pkg/cmd/extension/manager_test.go:1025
Function
TestManager_Install_binary_unsupported
(t *testing.T)
pkg/cmd/extension/manager_test.go:1092
Function
TestManager_Install_git
(t *testing.T)
pkg/cmd/extension/manager_test.go:899
Function
TestManager_Install_git_pinned
(t *testing.T)
pkg/cmd/extension/manager_test.go:979
Function
TestManager_Install_local
(t *testing.T)
pkg/cmd/extension/manager_test.go:830
Function
TestManager_Install_local_no_executable_found
(t *testing.T)
pkg/cmd/extension/manager_test.go:874
Function
TestManager_Install_not_installable
(t *testing.T)
pkg/cmd/extension/manager_test.go:946
Function
TestManager_Install_rosetta_fallback_not_found
(t *testing.T)
pkg/cmd/extension/manager_test.go:1136
Function
TestManager_List
(t *testing.T)
pkg/cmd/extension/manager_test.go:74
Function
TestManager_MigrateToBinaryExtension
(t *testing.T)
pkg/cmd/extension/manager_test.go:510
Function
TestManager_Remove
(t *testing.T)
pkg/cmd/extension/manager_test.go:270
Function
TestManager_UpgradeExtension_BinaryExtension
(t *testing.T)
pkg/cmd/extension/manager_test.go:590
Function
TestManager_UpgradeExtension_BinaryExtension_DryRun
(t *testing.T)
pkg/cmd/extension/manager_test.go:721
Function
TestManager_UpgradeExtension_BinaryExtension_Pinned
(t *testing.T)
pkg/cmd/extension/manager_test.go:775
Function
TestManager_UpgradeExtension_BinaryExtension_Pinned_Force
(t *testing.T)
pkg/cmd/extension/manager_test.go:655
Function
TestManager_UpgradeExtension_GitExtension
(t *testing.T)
pkg/cmd/extension/manager_test.go:431
Function
TestManager_UpgradeExtension_GitExtension_DryRun
(t *testing.T)
pkg/cmd/extension/manager_test.go:457
Function
TestManager_UpgradeExtension_GitExtension_Force
(t *testing.T)
pkg/cmd/extension/manager_test.go:483
Function
TestManager_UpgradeExtension_GitExtension_Pinned
(t *testing.T)
pkg/cmd/extension/manager_test.go:801
Function
TestManager_UpgradeExtension_LocalExtension
(t *testing.T)
pkg/cmd/extension/manager_test.go:398
Function
TestManager_UpgradeExtension_LocalExtension_DryRun
(t *testing.T)
pkg/cmd/extension/manager_test.go:414
Function
TestManager_UpgradeExtensions
(t *testing.T)
pkg/cmd/extension/manager_test.go:319
Function
TestManager_UpgradeExtensions_DryRun
(t *testing.T)
pkg/cmd/extension/manager_test.go:359
Function
TestManager_Upgrade_NoExtensions
(t *testing.T)
pkg/cmd/extension/manager_test.go:289
Function
TestManager_Upgrade_NoMatchingExtension
(t *testing.T)
pkg/cmd/extension/manager_test.go:301
Function
TestManager_list_includeMetadata
(t *testing.T)
pkg/cmd/extension/manager_test.go:107
← previous
next →
5,901–6,000 of 7,572, ranked by callers