(t *testing.T)
| 130 | } |
| 131 | |
| 132 | func TestFallbackConfig(t *testing.T) { |
| 133 | cfg := fallbackConfig() |
| 134 | requireKeyWithValue(t, cfg, []string{gitProtocolKey}, "https") |
| 135 | requireKeyWithValue(t, cfg, []string{editorKey}, "") |
| 136 | requireKeyWithValue(t, cfg, []string{promptKey}, "enabled") |
| 137 | requireKeyWithValue(t, cfg, []string{pagerKey}, "") |
| 138 | requireKeyWithValue(t, cfg, []string{aliasesKey, "co"}, "pr checkout") |
| 139 | requireKeyWithValue(t, cfg, []string{httpUnixSocketKey}, "") |
| 140 | requireKeyWithValue(t, cfg, []string{browserKey}, "") |
| 141 | requireKeyWithValue(t, cfg, []string{colorLabelsKey}, "disabled") |
| 142 | requireNoKey(t, cfg, []string{"unknown"}) |
| 143 | } |
| 144 | |
| 145 | func TestSetTopLevelKey(t *testing.T) { |
| 146 | c := newTestConfig() |
nothing calls this directly
no test coverage detected