Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Test
run: cargo test
- name: Test (all workspace members)
run: cargo test --workspace

build:
name: Build (release)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ sequenceDiagram
cargo fmt --all
cargo clippy --all-targets --all-features -- -D warnings
cargo build
cargo test
cargo test --workspace
```

3. **Build WASM:**
Expand All @@ -112,7 +112,7 @@ sequenceDiagram

## Development

Use one branch per issue or feature. Run `cargo fmt --all`, `cargo clippy --all-targets --all-features -- -D warnings`, `cargo test`, and `./scripts/check-wasm-size.sh` before pushing so every publishable contract stays within Soroban's WASM size limit.
Use one branch per issue or feature. Run `cargo fmt --all`, `cargo clippy --all-targets --all-features -- -D warnings`, `cargo test --workspace`, and `./scripts/check-wasm-size.sh` before pushing so every publishable contract stays within Soroban's WASM size limit.

### Test coverage

Expand Down
8 changes: 4 additions & 4 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ The Revenue Pool contract (`contracts/revenue_pool`) operates under the followin

### Testing Coverage

- [ ] Unit tests cover all public functions
- [ ] Edge cases and boundary conditions tested
- [ ] Panic scenarios tested with `#[should_panic]`
- [x] Unit tests cover all public functions
- [x] Edge cases and boundary conditions tested
- [x] Panic scenarios tested with `#[should_panic]`
- [ ] Integration tests for complete user flows
- [ ] Minimum 95% test coverage maintained
- [x] Minimum 95% test coverage maintained (enforced via `cargo tarpaulin` with `fail-under = 95.0`)

## External Audit Recommendation

Expand Down
1 change: 1 addition & 0 deletions contracts/vault/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3159,6 +3159,7 @@ mod fuzz {
client.deposit(&owner, &amount);
}
}
// else: deposit failed (e.g. insufficient USDC) β€” no sim change
}

// --- single deduct ---
Expand Down
2 changes: 1 addition & 1 deletion tarpaulin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fail-under = 95.0
out = ["Stdout", "Html", "Xml"]
output-dir = "coverage"

# Measure every crate in the workspace (currently just callora-vault).
# Measure every crate in the workspace (callora-vault, callora-settlement, callora-revenue-pool).
workspace = true

# Compile and instrument the library target only.
Expand Down
Loading