MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / TestTUIRenderUpdateAvailable

Function TestTUIRenderUpdateAvailable

cmd/update_test.go:210–215  ·  view source on GitHub ↗

TestTUIRenderUpdateAvailable verifies that the TUI renders update available message correctly.

(t *testing.T)

Source from the content-addressed store, hash-verified

208
209// TestTUIRenderUpdateAvailable verifies that the TUI renders update available message correctly.
210func TestTUIRenderUpdateAvailable(t *testing.T) {
211 result := tui.RenderUpdateAvailable("v1.0.0", "v2.0.0")
212 assert.Contains(t, result, "Update available")
213 assert.Contains(t, result, "v1.0.0")
214 assert.Contains(t, result, "v2.0.0")
215}
216
217// TestTUIRenderPMInstructions verifies that the TUI renders PM instructions correctly.
218func TestTUIRenderPMInstructions(t *testing.T) {

Callers

nothing calls this directly

Calls 1

RenderUpdateAvailableFunction · 0.92

Tested by

no test coverage detected