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

Function TestHandlePMUpdate_Scoop

cmd/update_test.go:43–53  ·  view source on GitHub ↗

TestHandlePMUpdate_Scoop verifies that handlePMUpdate prints correct instructions for Scoop-managed installations.

(t *testing.T)

Source from the content-addressed store, hash-verified

41// TestHandlePMUpdate_Scoop verifies that handlePMUpdate prints correct
42// instructions for Scoop-managed installations.
43func TestHandlePMUpdate_Scoop(t *testing.T) {
44 res := updatepolicy.Result{
45 CurrentVersion: "1.0.0",
46 LatestVersion: "2.0.0",
47 }
48 binPath := "C:\\Users\\test\\scoop\\apps\\tnr\\current\\tnr.exe"
49
50 err := handlePMUpdate(res, binPath)
51 assert.Error(t, err)
52 assert.Contains(t, err.Error(), "package manager")
53}
54
55// TestHandlePMUpdate_Winget verifies that handlePMUpdate prints correct
56// instructions for winget-managed installations.

Callers

nothing calls this directly

Calls 2

handlePMUpdateFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected