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