(t *testing.T)
| 96 | } |
| 97 | |
| 98 | func TestScript_ExecuteScriptAtPath_EmptyPath(t *testing.T) { |
| 99 | setupScriptTest(t, func(downloader *Downloader) { |
| 100 | data := &ScriptData{ |
| 101 | Event: ScriptEventDownloadDone, |
| 102 | Time: time.Now().UnixMilli(), |
| 103 | } |
| 104 | |
| 105 | err := downloader.executeScriptAtPath("", data) |
| 106 | if err == nil { |
| 107 | t.Error("Expected error for empty path") |
| 108 | } |
| 109 | if err.Error() != "script path is empty" { |
| 110 | t.Errorf("Expected 'script path is empty' error, got: %v", err) |
| 111 | } |
| 112 | }) |
| 113 | } |
| 114 | |
| 115 | func TestScript_ExecuteScriptAtPath_NonExistentFile(t *testing.T) { |
| 116 | setupScriptTest(t, func(downloader *Downloader) { |
nothing calls this directly
no test coverage detected