Skip to content

Commit cedaa94

Browse files
committed
refactor(tests): consolidate iterator oracle targets
1 parent e807f6a commit cedaa94

5 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494
cargo test --locked --test oracle_program_declarations
9595
cargo test --locked --test oracle_json
9696
cargo test --locked --test oracle_argument_semantics
97+
cargo test --locked --test oracle_iterator_methods
9798
cargo test --locked --features test262-host \
9899
--test unsupported_diagnostics \
99100
--test oracle_create_realm --test oracle_host_gc --test oracle_is_html_dda
@@ -119,6 +120,7 @@ jobs:
119120
cargo clippy --locked --test oracle_program_declarations -- -D warnings
120121
cargo clippy --locked --test oracle_json -- -D warnings
121122
cargo clippy --locked --test oracle_argument_semantics -- -D warnings
123+
cargo clippy --locked --test oracle_iterator_methods -- -D warnings
122124
cargo clippy --locked -p quickjs-oxide --features test262-host \
123125
--lib --bins -- -D warnings
124126
cargo clippy --locked -p quickjs-oxide --features test262-host \

scripts/check-oracle-registry.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,5 @@ check_registry json JSON tests/oracle_json.rs \
117117
tests/oracle/json oracle/json oracle_json_
118118
check_registry arguments Arguments tests/oracle_argument_semantics.rs \
119119
tests/oracle/arguments oracle/arguments oracle_argument
120+
check_registry iterator Iterator tests/oracle_iterator_methods.rs \
121+
tests/oracle/iterator oracle/iterator oracle_iterator_
File renamed without changes.
File renamed without changes.

tests/oracle_iterator_methods.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Keep the Iterator method oracle implementations in isolated modules while
2+
// Cargo builds one integration target.
3+
4+
#[path = "oracle/iterator/oracle_iterator_concat.rs"]
5+
mod oracle_iterator_concat;
6+
#[path = "oracle/iterator/oracle_iterator_helpers.rs"]
7+
mod oracle_iterator_helpers;

0 commit comments

Comments
 (0)