MCPcopy Create free account
hub / github.com/cli/cli / TestUsersForHostNoHost

Function TestUsersForHostNoHost

internal/config/auth_config_test.go:619–628  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

617}
618
619func TestUsersForHostNoHost(t *testing.T) {
620 // Given we have a config with no hosts
621 authCfg := newTestAuthConfig(t)
622
623 // When we get the users for a host that doesn't exist
624 users := authCfg.UsersForHost("github.com")
625
626 // Then it returns nil
627 require.Nil(t, users)
628}
629
630func TestUsersForHostWithUsers(t *testing.T) {
631 // Given we have a config with a host and users

Callers

nothing calls this directly

Calls 2

newTestAuthConfigFunction · 0.85
UsersForHostMethod · 0.65

Tested by

no test coverage detected