MCPcopy Create free account

hub / github.com/cli/cli / functions

Functions7,487 in github.com/cli/cli

FunctionTestJoin
(t *testing.T)
internal/safepaths/absolute_test.go:32
FunctionTestJoinPathRejectsTraversal
(t *testing.T)
internal/safeurl/safeurl_test.go:75
FunctionTestJsonArrayWriter
(t *testing.T)
pkg/cmd/api/pagination_test.go:174
FunctionTestJsonArrayWriter_Copy
(t *testing.T)
pkg/cmd/api/pagination_test.go:228
FunctionTestKramdownCompatibleDocs
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
FunctionTestLabel
(t *testing.T)
pkg/iostreams/color_test.go:10
FunctionTestLabelList_pagination
(t *testing.T)
pkg/cmd/label/http_test.go:12
FunctionTestLicenseTemplateReturnsErrorWhenLicenseTemplateNotFound
(t *testing.T)
api/queries_repo_test.go:1209
FunctionTestLicenseTemplateReturnsLicense
(t *testing.T)
api/queries_repo_test.go:1135
FunctionTestList
(t *testing.T)
pkg/cmd/discussion/client/client_test.go:108
FunctionTestList
(t *testing.T)
pkg/cmd/issue/artifact/client/client_test.go:157
FunctionTestListArtifactsReturnsAPIErrorMessage
(t *testing.T)
pkg/cmd/run/shared/artifacts_test.go:70
FunctionTestListCategories
(t *testing.T)
pkg/cmd/discussion/client/client_test.go:942
FunctionTestListCmdFlagError
(t *testing.T)
pkg/cmd/codespace/list_test.go:17
FunctionTestListCodespaces_limited
(t *testing.T)
internal/codespaces/api/api_test.go:390
FunctionTestListCodespaces_unlimited
(t *testing.T)
internal/codespaces/api/api_test.go:415
FunctionTestListGitIgnoreTemplatesReturnsGitIgnoreTemplates
(t *testing.T)
api/queries_repo_test.go:1238
FunctionTestListHeader
(t *testing.T)
pkg/cmd/event/subscription/list/list_test.go:220
FunctionTestListJSONFields
(t *testing.T)
pkg/cmd/discussion/list/list_test.go:20
FunctionTestListJSONFields
(t *testing.T)
pkg/cmd/issue/artifact/list/list_test.go:21
FunctionTestListLabels
(t *testing.T)
pkg/cmd/discussion/client/client_test.go:2722
FunctionTestListLatestSessionsForViewer
(t *testing.T)
pkg/cmd/agent-task/capi/sessions_test.go:17
FunctionTestListLicenseTemplatesReturnsLicenses
(t *testing.T)
api/queries_repo_test.go:961
FunctionTestListPorts
(t *testing.T)
pkg/cmd/codespace/ports_test.go:14
FunctionTestListRun
(t *testing.T)
pkg/cmd/cache/list/list_test.go:129
FunctionTestListRun
(t *testing.T)
pkg/cmd/discussion/list/list_test.go:231
FunctionTestListRun
(t *testing.T)
pkg/cmd/label/list_test.go:171
FunctionTestListRun
(t *testing.T)
pkg/cmd/org/list/list_test.go:80
FunctionTestListRun
(t *testing.T)
pkg/cmd/issue/artifact/list/list_test.go:205
FunctionTestListRun
(t *testing.T)
pkg/cmd/repo/license/list/list_test.go:65
FunctionTestListRun
(t *testing.T)
pkg/cmd/repo/autolink/list/list_test.go:114
FunctionTestListRun
(t *testing.T)
pkg/cmd/repo/gitignore/list/list_test.go:65
FunctionTestListRun
(t *testing.T)
pkg/cmd/repo/deploy-key/list/list_test.go:18
FunctionTestListRun
(t *testing.T)
pkg/cmd/skills/list/list_test.go:122
FunctionTestListRun
(t *testing.T)
pkg/cmd/ssh-key/list/list_test.go:16
FunctionTestListRun
(t *testing.T)
pkg/cmd/run/list/list_test.go:139
FunctionTestListRun
(t *testing.T)
pkg/cmd/event/subscription/list/list_test.go:100
FunctionTestListRun
(t *testing.T)
pkg/cmd/workflow/list/list_test.go:89
FunctionTestListRunDefaultHost
(t *testing.T)
pkg/cmd/event/subscription/list/list_test.go:225
FunctionTestListSessionsByResourceID
(t *testing.T)
pkg/cmd/agent-task/capi/sessions_test.go:1199
FunctionTestListSessionsByResourceIDRequiresResource
(t *testing.T)
pkg/cmd/agent-task/capi/sessions_test.go:1188
FunctionTestListSkillFiles
(t *testing.T)
internal/skills/discovery/discovery_test.go:1671
FunctionTestListSubscriptions
(t *testing.T)
pkg/cmd/event/client/client_test.go:87
FunctionTestListSubscriptionsDecodesFields
(t *testing.T)
pkg/cmd/event/client/client_test.go:173
FunctionTestListenRun
(t *testing.T)
pkg/cmd/event/listen/listen_test.go:219
FunctionTestListenRunBackoffResetsOnlyAfterDelivery
(t *testing.T)
pkg/cmd/event/listen/listen_test.go:602
FunctionTestListenRunResourceHost
(t *testing.T)
pkg/cmd/event/listen/listen_test.go:773
FunctionTestListenTCPInterfaces
(t *testing.T)
internal/codespaces/codespaces_test.go:15
FunctionTestLiveFixtureRepositoryClientUsesAPIHost
(t *testing.T)
acceptance/fixture_repository_test.go:270
FunctionTestLiveSigstoreVerifier
(t *testing.T)
pkg/cmd/attestation/verification/sigstore_integration_test.go:19
FunctionTestLiveSigstoreVerifier_noVerifierSet
(t *testing.T)
pkg/cmd/attestation/verification/sigstore_test.go:58
FunctionTestLoadBundleFromJSONFile
(t *testing.T)
pkg/cmd/attestation/verification/attestation_test.go:58
FunctionTestLoadBundlesFromJSONLinesFile
(t *testing.T)
pkg/cmd/attestation/verification/attestation_test.go:16
FunctionTestLoadBundlesFromJSONLinesFile_RejectEmptyJSONLFile
(t *testing.T)
pkg/cmd/attestation/verification/attestation_test.go:45
FunctionTestLockAcquiresWhenFree
(t *testing.T)
internal/flock/flock_test.go:103
FunctionTestLockBlocksUntilUnlocked
(t *testing.T)
internal/flock/flock_test.go:112
FunctionTestLockReturnsNonContentionError
(t *testing.T)
internal/flock/flock_test.go:141
FunctionTestLockTimesOutUnderContention
(t *testing.T)
internal/flock/flock_test.go:148
FunctionTestLogFlusherWritesNoneMarkerForEmptyPayload
(t *testing.T)
internal/telemetry/telemetry_test.go:333
FunctionTestLogin
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:156
FunctionTestLoginAcquiresRefreshLock
(t *testing.T)
internal/config/refreshable_test.go:418
FunctionTestLoginAddsHostIfNotAlreadyAdded
(t *testing.T)
internal/config/auth_config_test.go:346
FunctionTestLoginAddsUserToConfigWithoutGitProtocolAndWithSecureStorage
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
FunctionTestLoginFailsWhenOtherCredentialKindSurvivesPurge
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
FunctionTestLoginInsecurePostMigrationUsesConfigForToken
(t *testing.T)
internal/config/auth_config_test.go:896
FunctionTestLoginInsecureStorage
(t *testing.T)
internal/config/auth_config_test.go:303
FunctionTestLoginPostMigrationSetsGitProtocol
(t *testing.T)
internal/config/auth_config_test.go:916
FunctionTestLoginPostMigrationSetsUser
(t *testing.T)
internal/config/auth_config_test.go:935
FunctionTestLoginProceedsWhenRefreshLockCannotBeAcquired
(t *testing.T)
internal/config/refreshable_test.go:436
FunctionTestLoginPurgesRefreshableRecord
TestLoginPurgesRefreshableRecord is the inverse of TestLoginRefreshablePurgesNonExpiringLogin: logging in with a non-refreshable token must remove the
internal/config/refreshable_test.go:647
FunctionTestLoginRefreshable
(t *testing.T)
internal/config/refreshable_test.go:521
FunctionTestLoginRefreshablePurgesNonExpiringKeyringLogin
TestLoginRefreshablePurgesNonExpiringKeyringLogin covers the keyring arm of the non-expiring purge. Resolution now probes the ordinary keyring before
internal/config/refreshable_test.go:624
FunctionTestLoginRefreshablePurgesNonExpiringLogin
(t *testing.T)
internal/config/refreshable_test.go:603
FunctionTestLoginRefreshableRejectsInvalidCredential
(t *testing.T)
internal/config/refreshable_test.go:579
FunctionTestLoginReloadsFreshConfigBeforeMutating
(t *testing.T)
internal/config/refreshable_test.go:458
FunctionTestLoginSecurePostMigrationRemovesTokenFromConfig
(t *testing.T)
internal/config/auth_config_test.go:954
FunctionTestLoginSecureStorageRemovesOldInsecureConfigToken
(t *testing.T)
internal/config/auth_config_test.go:275
FunctionTestLoginSecureStorageUsesKeyring
(t *testing.T)
internal/config/auth_config_test.go:252
FunctionTestLoginSecureStorageWithErrorFallsbackAndReports
(t *testing.T)
internal/config/auth_config_test.go:288
FunctionTestLoginSetsGitProtocolForProvidedHost
(t *testing.T)
internal/config/auth_config_test.go:332
FunctionTestLoginSetsUserForProvidedHost
(t *testing.T)
internal/config/auth_config_test.go:317
FunctionTestLoginSucceedsWhenKeyringUnavailable
(t *testing.T)
internal/config/refreshable_test.go:483
FunctionTestLogin_doesNotRecordAuthTelemetryForEnterprise
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:913
FunctionTestLogin_pastedTokenIgnoresConfiguredExpiringPreference
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:648
FunctionTestLogin_recordsAuthTelemetry
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:706
FunctionTestLogin_recordsAuthTelemetryOnFailure
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:762
FunctionTestLogin_recordsExpiringSetupCancelled
(t *testing.T)
pkg/cmd/auth/shared/login_flow_test.go:864
FunctionTestLogoutAcquiresRefreshLock
(t *testing.T)
internal/config/refreshable_test.go:372
FunctionTestLogoutIgnoresErrorsFromConfigAndKeyring
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
FunctionTestLogoutOfActiveUserSwitchesUserIfPossible
(t *testing.T)
internal/config/auth_config_test.go:398
FunctionTestLogoutOfInactiveUserDoesNotSwitchUser
(t *testing.T)
internal/config/auth_config_test.go:424
FunctionTestLogoutReloadsFreshConfigBeforeRemovingCredentials
(t *testing.T)
internal/config/refreshable_test.go:391
FunctionTestLogoutRemovesAllUserCredentialRecords
(t *testing.T)
internal/config/refreshable_test.go:328
FunctionTestLogoutRemovesHostAndKeyringToken
(t *testing.T)
internal/config/auth_config_test.go:375
FunctionTestLogoutRightAfterMigrationRemovesHost
(t *testing.T)
internal/config/auth_config_test.go:875
FunctionTestMain
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
FunctionTestMain
(m *testing.M)
acceptance/acceptance_test.go:226
FunctionTestManPrintFlagsHidesShortDeprecated
(t *testing.T)
internal/docs/man_test.go:157
FunctionTestManPrintFlagsShowsDefaultValues
(t *testing.T)
internal/docs/man_test.go:189
FunctionTestManagedFixtureRejectsRepositoryCreation
(t *testing.T)
acceptance/fixture_repository_test.go:327
← previousnext →5,801–5,900 of 7,487, ranked by callers