TestHandlePMUpdate_Scoop verifies that handlePMUpdate prints correct instructions for Scoop-managed installations.
(t *testing.T)
| 41 | // TestHandlePMUpdate_Scoop verifies that handlePMUpdate prints correct |
| 42 | // instructions for Scoop-managed installations. |
| 43 | func 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. |
nothing calls this directly
no test coverage detected