(t *testing.T)
| 15 | } |
| 16 | |
| 17 | func TestWebStart_NonExistentDirectory(t *testing.T) { |
| 18 | resetWebFlags() |
| 19 | taskDir = "/nonexistent/path/that/does/not/exist" |
| 20 | |
| 21 | err := runWebStart(webStartCmd, nil) |
| 22 | if err == nil { |
| 23 | t.Fatal("expected error for non-existent directory") |
| 24 | } |
| 25 | |
| 26 | if !strings.Contains(err.Error(), "not a valid directory") { |
| 27 | t.Errorf("expected 'not a valid directory' error, got: %v", err) |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | func TestWebStart_FileInsteadOfDirectory(t *testing.T) { |
| 32 | resetWebFlags() |
nothing calls this directly
no test coverage detected