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

Function TestHandlePMUpdate_Winget

cmd/update_test.go:57–67  ·  view source on GitHub ↗

TestHandlePMUpdate_Winget verifies that handlePMUpdate prints correct instructions for winget-managed installations.

(t *testing.T)

Source from the content-addressed store, hash-verified

55// TestHandlePMUpdate_Winget verifies that handlePMUpdate prints correct
56// instructions for winget-managed installations.
57func TestHandlePMUpdate_Winget(t *testing.T) {
58 res := updatepolicy.Result{
59 CurrentVersion: "1.0.0",
60 LatestVersion: "2.0.0",
61 }
62 binPath := "C:\\Program Files\\WindowsApps\\Thunder.tnr\\tnr.exe"
63
64 err := handlePMUpdate(res, binPath)
65 assert.Error(t, err)
66 assert.Contains(t, err.Error(), "package manager")
67}
68
69// TestHandlePMUpdate_Unknown verifies that handlePMUpdate prints generic
70// instructions for unknown package manager installations.

Callers

nothing calls this directly

Calls 2

handlePMUpdateFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected