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

Function TestUsersForHostNoHost

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

Source from the content-addressed store, hash-verified

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