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

Function TestHandlePMUpdate_Homebrew

cmd/update_test.go:29–39  ·  view source on GitHub ↗

TestHandlePMUpdate_Homebrew verifies that handlePMUpdate prints correct instructions for Homebrew-managed installations.

(t *testing.T)

Source from the content-addressed store, hash-verified

27// TestHandlePMUpdate_Homebrew verifies that handlePMUpdate prints correct
28// instructions for Homebrew-managed installations.
29func TestHandlePMUpdate_Homebrew(t *testing.T) {
30 res := updatepolicy.Result{
31 CurrentVersion: "1.0.0",
32 LatestVersion: "2.0.0",
33 }
34 binPath := "/opt/homebrew/Cellar/tnr/1.0.0/bin/tnr"
35
36 err := handlePMUpdate(res, binPath)
37 assert.Error(t, err)
38 assert.Contains(t, err.Error(), "package manager")
39}
40
41// TestHandlePMUpdate_Scoop verifies that handlePMUpdate prints correct
42// instructions for Scoop-managed installations.

Callers

nothing calls this directly

Calls 2

handlePMUpdateFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected