MCPcopy
hub / github.com/basecamp/once / TestSettings_ViewShowsError

Function TestSettings_ViewShowsError

internal/ui/settings_test.go:139–148  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

137}
138
139func TestSettings_ViewShowsError(t *testing.T) {
140 s := testSettings()
141 s.state = settingsStateForm
142 s.err = assert.AnError
143 s.width = 80
144 s.height = 24
145
146 view := s.View()
147 assert.Contains(t, view, assert.AnError.Error())
148}
149
150func TestSettings_ViewShowsProgressWhileDeploying(t *testing.T) {
151 s := testSettings()

Callers

nothing calls this directly

Calls 3

testSettingsFunction · 0.85
ViewMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…