#solana #mocking

clone-solana-example-mocks

Solana mock types for use in examples

1 stable release

new 2.2.1 Apr 30, 2025

#152 in #mocking


Used in 2 crates (via clone-solana-program)

Apache-2.0

385KB
6.5K SLoC

Mock types for use in examples.

These represent APIs from crates that themselves depend on this crate, and which are useful for illustrating the examples for APIs in this crate.

Directly depending on these crates though would cause problematic circular dependencies, so instead they are mocked out here in a way that allows examples to appear to use crates that this crate must not depend on.

Each mod here has the name of a crate, so that examples can be structured to appear to import from that crate.

Dependencies

~4–10MB
~103K SLoC