TestHandlePMUpdate_Homebrew verifies that handlePMUpdate prints correct instructions for Homebrew-managed installations.
(t *testing.T)
| 27 | // TestHandlePMUpdate_Homebrew verifies that handlePMUpdate prints correct |
| 28 | // instructions for Homebrew-managed installations. |
| 29 | func 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. |
nothing calls this directly
no test coverage detected