(t *testing.T)
| 161 | } |
| 162 | |
| 163 | func TestSetUserSpecificKey(t *testing.T) { |
| 164 | c := newTestConfig() |
| 165 | host := "github.com" |
| 166 | user := "test-user" |
| 167 | c.cfg.Set([]string{hostsKey, host, userKey}, user) |
| 168 | |
| 169 | key := "host-level-key" |
| 170 | val := "host-level-value" |
| 171 | c.Set(host, key, val) |
| 172 | requireKeyWithValue(t, c.cfg, []string{hostsKey, host, key}, val) |
| 173 | requireKeyWithValue(t, c.cfg, []string{hostsKey, host, usersKey, user, key}, val) |
| 174 | } |
| 175 | |
| 176 | func TestSetUserSpecificKeyNoUserPresent(t *testing.T) { |
| 177 | c := newTestConfig() |
nothing calls this directly
no test coverage detected