MCPcopy Create free account
hub / github.com/SurgeDM/Surge / TestLifecycleManager_Enqueue_EmptyURL

Function TestLifecycleManager_Enqueue_EmptyURL

internal/processing/manager_test.go:588–597  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

586}
587
588func TestLifecycleManager_Enqueue_EmptyURL(t *testing.T) {
589 mgr := newLifecycleManagerForTest()
590 _, _, err := mgr.Enqueue(context.Background(), &DownloadRequest{
591 URL: "",
592 Path: t.TempDir(),
593 })
594 if err == nil {
595 t.Fatal("expected error with empty URL")
596 }
597}
598
599func TestLifecycleManager_Enqueue_EmptyPath(t *testing.T) {
600 server := newProbeTestServer(t, 2048)

Callers

nothing calls this directly

Calls 2

EnqueueMethod · 0.80

Tested by

no test coverage detected