Commit 283d540
test(examples): let mock_file_source simulate an ingest failure via fail_start (#128)
The mock_file_source example doubles as the shared test fixture for PlotJuggler's
file-loader tests. Add a test-only failure-injection hook: when its config contains
the `fail_start` marker, importData() returns an error instead of writing rows.
This is needed because the host creates a dataset in the live engine BEFORE
importData() runs, so a source that loads/binds successfully but then fails during
ingest is the only way to exercise the host's abandoned-dataset cleanup path. The
existing deliberately-broken sibling plugins fail at discovery (before the dataset
exists), so they can't reach that path.
Scope: example/test plugin only — no installed header, no ABI, no canonical-object
change — so no SDK version bump (stays 0.8.1). config_ is matched by substring to
keep the example JSON-dependency-free; only tests set this config.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 75b4849 commit 283d540
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
25 | 34 | | |
26 | 35 | | |
27 | 36 | | |
| |||
0 commit comments