writeLocalRecord seeds a .json record directly, simulating a warm volume left behind by a prior run.
(t *testing.T, dir string, f workflow.MemoryFile)
| 24 | // writeLocalRecord seeds a <uid>.json record directly, simulating a warm |
| 25 | // volume left behind by a prior run. |
| 26 | func writeLocalRecord(t *testing.T, dir string, f workflowapi.MemoryFile) { |
| 27 | t.Helper() |
| 28 | require.NoError(t, os.MkdirAll(dir, 0o755)) |
| 29 | b, err := json.Marshal(f) |
| 30 | require.NoError(t, err) |
| 31 | require.NoError(t, os.WriteFile(filepath.Join(dir, f.Id+".json"), b, 0o644)) |
| 32 | } |
| 33 | |
| 34 | func TestManager_Reconcile_SeedsFromDeclaredWhenLocalEmpty(t *testing.T) { |
| 35 | // Empty local dir: declared content is the seed. |
no outgoing calls
no test coverage detected