MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestSettingsOverlay_GHError

Function TestSettingsOverlay_GHError

internal/tui/settings_test.go:225–242  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

223}
224
225func TestSettingsOverlay_GHError(t *testing.T) {
226 s := NewSettingsOverlay()
227 s.LoadFromConfig(config.Default())
228
229 if s.HasGHError() {
230 t.Fatal("should not have GH error initially")
231 }
232
233 s.SetGHError("gh not found")
234 if !s.HasGHError() {
235 t.Fatal("should have GH error after SetGHError")
236 }
237
238 s.DismissGHError()
239 if s.HasGHError() {
240 t.Fatal("should not have GH error after dismiss")
241 }
242}
243
244func TestSettingsOverlay_Render(t *testing.T) {
245 s := NewSettingsOverlay()

Callers

nothing calls this directly

Calls 6

LoadFromConfigMethod · 0.95
HasGHErrorMethod · 0.95
SetGHErrorMethod · 0.95
DismissGHErrorMethod · 0.95
DefaultFunction · 0.92
NewSettingsOverlayFunction · 0.85

Tested by

no test coverage detected