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
TestJoin
(t *testing.T)
internal/safepaths/absolute_test.go:32
Function
TestJoinPathRejectsTraversal
(t *testing.T)
internal/safeurl/safeurl_test.go:75
Function
TestJsonArrayWriter
(t *testing.T)
pkg/cmd/api/pagination_test.go:174
Function
TestJsonArrayWriter_Copy
(t *testing.T)
pkg/cmd/api/pagination_test.go:228
Function
TestKramdownCompatibleDocs
Since our online docs website renders pages by using the kramdown (a superset of Markdown) engine, we have to check against some known quirks of the s
pkg/cmd/root/help_test.go:66
Function
TestLabel
(t *testing.T)
pkg/iostreams/color_test.go:10
Function
TestLabelList_pagination
(t *testing.T)
pkg/cmd/label/http_test.go:12
Function
TestLicenseTemplateReturnsErrorWhenLicenseTemplateNotFound
(t *testing.T)
api/queries_repo_test.go:1209
Function
TestLicenseTemplateReturnsLicense
(t *testing.T)
api/queries_repo_test.go:1135
Function
TestList
(t *testing.T)
pkg/cmd/discussion/client/client_test.go:108
Function
TestList
(t *testing.T)
pkg/cmd/issue/artifact/client/client_test.go:157
Function
TestListArtifactsReturnsAPIErrorMessage
(t *testing.T)
pkg/cmd/run/shared/artifacts_test.go:70
Function
TestListCategories
(t *testing.T)
pkg/cmd/discussion/client/client_test.go:942
Function
TestListCmdFlagError
(t *testing.T)
pkg/cmd/codespace/list_test.go:17
Function
TestListCodespaces_limited
(t *testing.T)
internal/codespaces/api/api_test.go:390
Function
TestListCodespaces_unlimited
(t *testing.T)
internal/codespaces/api/api_test.go:415
Function
TestListGitIgnoreTemplatesReturnsGitIgnoreTemplates
(t *testing.T)
api/queries_repo_test.go:1238
Function
TestListHeader
(t *testing.T)
pkg/cmd/event/subscription/list/list_test.go:220
Function
TestListJSONFields
(t *testing.T)
pkg/cmd/discussion/list/list_test.go:20
Function
TestListJSONFields
(t *testing.T)
pkg/cmd/issue/artifact/list/list_test.go:21
Function
TestListLabels
(t *testing.T)
pkg/cmd/discussion/client/client_test.go:2722
Function
TestListLatestSessionsForViewer
(t *testing.T)
pkg/cmd/agent-task/capi/sessions_test.go:17
Function
TestListLicenseTemplatesReturnsLicenses
(t *testing.T)
api/queries_repo_test.go:961
Function
TestListPorts
(t *testing.T)
pkg/cmd/codespace/ports_test.go:14
Function
TestListRun
(t *testing.T)
pkg/cmd/cache/list/list_test.go:129
Function
TestListRun
(t *testing.T)
pkg/cmd/discussion/list/list_test.go:231
Function
TestListRun
(t *testing.T)
pkg/cmd/label/list_test.go:171
Function
TestListRun
(t *testing.T)
pkg/cmd/org/list/list_test.go:80
Function
TestListRun
(t *testing.T)
pkg/cmd/issue/artifact/list/list_test.go:205
Function
TestListRun
(t *testing.T)
pkg/cmd/repo/license/list/list_test.go:65
Function
TestListRun
(t *testing.T)
pkg/cmd/repo/autolink/list/list_test.go:114
Function
TestListRun
(t *testing.T)
pkg/cmd/repo/gitignore/list/list_test.go:65
Function
TestListRun
(t *testing.T)
pkg/cmd/repo/deploy-key/list/list_test.go:18
Function
TestListRun
(t *testing.T)
pkg/cmd/skills/list/list_test.go:122
Function
TestListRun
(t *testing.T)
pkg/cmd/ssh-key/list/list_test.go:16
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:418
Function
TestLoginAddsHostIfNotAlreadyAdded
(t *testing.T)
internal/config/auth_config_test.go:346
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:361
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:679
Function
TestLoginInsecurePostMigrationUsesConfigForToken
(t *testing.T)
internal/config/auth_config_test.go:896
Function
TestLoginInsecureStorage
(t *testing.T)
internal/config/auth_config_test.go:303
Function
TestLoginPostMigrationSetsGitProtocol
(t *testing.T)
internal/config/auth_config_test.go:916
Function
TestLoginPostMigrationSetsUser
(t *testing.T)
internal/config/auth_config_test.go:935
Function
TestLoginProceedsWhenRefreshLockCannotBeAcquired
(t *testing.T)
internal/config/refreshable_test.go:436
Function
TestLoginPurgesRefreshableRecord
TestLoginPurgesRefreshableRecord is the inverse of TestLoginRefreshablePurgesNonExpiringLogin: logging in with a non-refreshable token must remove the
internal/config/refreshable_test.go:647
Function
TestLoginRefreshable
(t *testing.T)
internal/config/refreshable_test.go:521
Function
TestLoginRefreshablePurgesNonExpiringKeyringLogin
TestLoginRefreshablePurgesNonExpiringKeyringLogin covers the keyring arm of the non-expiring purge. Resolution now probes the ordinary keyring before
internal/config/refreshable_test.go:624
Function
TestLoginRefreshablePurgesNonExpiringLogin
(t *testing.T)
internal/config/refreshable_test.go:603
Function
TestLoginRefreshableRejectsInvalidCredential
(t *testing.T)
internal/config/refreshable_test.go:579
Function
TestLoginReloadsFreshConfigBeforeMutating
(t *testing.T)
internal/config/refreshable_test.go:458
Function
TestLoginSecurePostMigrationRemovesTokenFromConfig
(t *testing.T)
internal/config/auth_config_test.go:954
Function
TestLoginSecureStorageRemovesOldInsecureConfigToken
(t *testing.T)
internal/config/auth_config_test.go:275
Function
TestLoginSecureStorageUsesKeyring
(t *testing.T)
internal/config/auth_config_test.go:252
Function
TestLoginSecureStorageWithErrorFallsbackAndReports
(t *testing.T)
internal/config/auth_config_test.go:288
Function
TestLoginSetsGitProtocolForProvidedHost
(t *testing.T)
internal/config/auth_config_test.go:332
Function
TestLoginSetsUserForProvidedHost
(t *testing.T)
internal/config/auth_config_test.go:317
Function
TestLoginSucceedsWhenKeyringUnavailable
(t *testing.T)
internal/config/refreshable_test.go:483
Function
TestLogin_doesNotRecordAuthTelemetryForEnterprise
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:913
Function
TestLogin_pastedTokenIgnoresConfiguredExpiringPreference
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:648
Function
TestLogin_recordsAuthTelemetry
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:706
Function
TestLogin_recordsAuthTelemetryOnFailure
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:762
Function
TestLogin_recordsExpiringSetupCancelled
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:864
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:453
Function
TestLogoutOfActiveUserSwitchesUserIfPossible
(t *testing.T)
internal/config/auth_config_test.go:398
Function
TestLogoutOfInactiveUserDoesNotSwitchUser
(t *testing.T)
internal/config/auth_config_test.go:424
Function
TestLogoutReloadsFreshConfigBeforeRemovingCredentials
(t *testing.T)
internal/config/refreshable_test.go:391
Function
TestLogoutRemovesAllUserCredentialRecords
(t *testing.T)
internal/config/refreshable_test.go:328
Function
TestLogoutRemovesHostAndKeyringToken
(t *testing.T)
internal/config/auth_config_test.go:375
Function
TestLogoutRightAfterMigrationRemovesHost
(t *testing.T)
internal/config/auth_config_test.go:875
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
← previous
next →
5,801–5,900 of 7,487, ranked by callers