add some "success case" tests for filter plugins packaged as examples/
Not in this PR:
it seems worth trying to make the "plugin failed because of missing/invalid filter argument" case fail more nicely (vs panicking in FFI-world), so maybe that involves eg encoding a failure code in the return value of the initialize() plugin function and translating that into a Result? But that sounds like a bit of a refactor so kept it separate
To test:
You should be able to build the examples in examples as normally expected (eg cargo build --example whatever)
If you completely remove your local target/ directory and then run cargo test it should pass (implying that it successfully built the filter plugins while running cargo test, I think)
In this PR:
examples/
Not in this PR:
initialize()
plugin function and translating that into aResult
? But that sounds like a bit of a refactor so kept it separateTo test: You should be able to build the examples in
examples
as normally expected (egcargo build --example whatever
) If you completely remove your localtarget/
directory and then runcargo test
it should pass (implying that it successfully built the filter plugins while runningcargo test
, I think)