(t *testing.T)
| 177 | } |
| 178 | |
| 179 | func TestSetUserSpecificKeyNoUserPresent(t *testing.T) { |
| 180 | c := newTestConfig() |
| 181 | host := "github.com" |
| 182 | key := "host-level-key" |
| 183 | val := "host-level-value" |
| 184 | c.Set(host, key, val) |
| 185 | requireKeyWithValue(t, c.cfg, []string{hostsKey, host, key}, val) |
| 186 | requireNoKey(t, c.cfg, []string{hostsKey, host, usersKey}) |
| 187 | } |
| 188 | |
| 189 | func TestTelemetry(t *testing.T) { |
| 190 | t.Run("returns default when not configured", func(t *testing.T) { |
nothing calls this directly
no test coverage detected