Skip to content

test: cover factory edge cases#43

Merged
prodbycorne merged 4 commits into
SmartDropLabs:mainfrom
ProtonsAndElectrons:codex/factory-edge-tests
Jun 27, 2026
Merged

test: cover factory edge cases#43
prodbycorne merged 4 commits into
SmartDropLabs:mainfrom
ProtonsAndElectrons:codex/factory-edge-tests

Conversation

@ProtonsAndElectrons

Copy link
Copy Markdown
Contributor

Summary

  • Add default-running factory edge-case coverage for initialization, admin transfer, pool creation, get_pool, and pool_wasm_hash behavior from Add comprehensive test coverage for factory contract edge cases #20.
  • Replace the ignored create_pool tests with a small deployable mock pool WASM so deployment paths run in normal cargo test.
  • Assert typed factory errors, exact admin auth/event payloads, deterministic pool addresses, per-pool count increments, zero-rate storage, and get_pool TTL extension.
  • Remove unwrap() use from factory test assertions.

Fixes #20

Validation

  • cargo test -p factory (29 passed, 0 ignored; on Windows this required a local-only temporary farming-pool crate-type workaround for the existing x86_64-w64-mingw32 cdylib export ordinal linker issue; not committed)
  • cargo fmt -p factory -- --check
  • cargo check -p factory --lib
  • git diff --check

@prodbycorne prodbycorne merged commit 8f3c107 into SmartDropLabs:main Jun 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add comprehensive test coverage for factory contract edge cases

2 participants