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

Function TestUsersForHostNoHost

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

Source from the content-addressed store, hash-verified

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…