Refactor(testing): extract shared multisig auth test setup helper
- Ngôn ngữ chính
- Rust
- Star
- 132
- Fork
- 167
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 110
Mô tả
> [crates/miden-testing/tests/auth/multisig_smart.rs]
> ```
> (Vec, Vec, Vec, Vec);
>
> /// Sets up secret keys, auth schemes, public keys, and authenticators for a specific scheme.
> fn setup_keys_and_authenticators_with_scheme(
> ```
> Is it not possible to reuse the existing setup_keys_and_authenticators_with_scheme function which we use in the existing mutlisig?
Originally by: @partylikeits1983 in https://github.com/0xMiden/protocol/pull/2806
Extract the helper into a shared module reachable from every auth test:
```
crates/miden-testing/tests/auth/
mod.rs
common.rs # new — pub fn setup_keys_and_authenticators_with_scheme + MultisigTestSetup
multisig.rs
multisig_smart.rs
guarded_multisig.rs
hybrid_multisig.rs
```
Each test file then replaces its local copy with:
`use crate::auth::common::{MultisigTestSetup, setup_keys_and_authenticators_with_scheme};`
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.