MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / TestManager_RestoreMissing

Function TestManager_RestoreMissing

internal/sniproxy/manager_test.go:52–57  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

50}
51
52func TestManager_RestoreMissing(t *testing.T) {
53 m := NewManager(filepath.Join(t.TempDir(), "state.json"))
54 if err := m.Restore(); err != nil {
55 t.Errorf("Restore on missing file: %v", err)
56 }
57}
58
59func TestManager_ApplyEmpty(t *testing.T) {
60 m := NewManager(filepath.Join(t.TempDir(), "state.json"))

Callers

nothing calls this directly

Calls 2

RestoreMethod · 0.95
NewManagerFunction · 0.70

Tested by

no test coverage detected