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