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

Function TestUsersForHostNoHost

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

Source from the content-addressed store, hash-verified

601}
602
603func TestUsersForHostNoHost(t *testing.T) {
604 // Given we have a config with no hosts
605 authCfg := newTestAuthConfig(t)
606
607 // When we get the users for a host that doesn't exist
608 users := authCfg.UsersForHost("github.com")
609
610 // Then it returns nil
611 require.Nil(t, users)
612}
613
614func TestUsersForHostWithUsers(t *testing.T) {
615 // 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