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

Function TestLifecycleManager_Enqueue_EmptyPath

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

Source from the content-addressed store, hash-verified

597}
598
599func 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
612func TestLifecycleManager_Enqueue_ContextCancellationBeforeReservation(t *testing.T) {
613 ctx, cancel := context.WithCancel(context.Background())

Callers

nothing calls this directly

Calls 4

newProbeTestServerFunction · 0.85
EnqueueMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected