(t *testing.T)
| 597 | } |
| 598 | |
| 599 | func TestLifecycleManager_Enqueue_EmptyPath(t *testing.T) { |
| 600 | server := newProbeTestServer(t, 2048) |
| 601 | defer server.Close() |
| 602 | mgr := newLifecycleManagerForTest() |
| 603 | _, _, err := mgr.Enqueue(context.Background(), &DownloadRequest{ |
| 604 | URL: server.URL, |
| 605 | Path: "", |
| 606 | }) |
| 607 | if err == nil { |
| 608 | t.Fatal("expected error with empty path") |
| 609 | } |
| 610 | } |
| 611 | |
| 612 | func TestLifecycleManager_Enqueue_ContextCancellationBeforeReservation(t *testing.T) { |
| 613 | ctx, cancel := context.WithCancel(context.Background()) |
nothing calls this directly
no test coverage detected