Skip to content

Commit fd4d708

Browse files
committed
refactor(tests): consolidate proxy and reflect targets
1 parent 2bd0d94 commit fd4d708

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
@@ -100,6 +100,7 @@ jobs:
100100
cargo test --locked --test oracle_member_access
101101
cargo test --locked --test oracle_template_semantics
102102
cargo test --locked --test oracle_global_semantics
103+
cargo test --locked --test oracle_proxy_reflect
103104
cargo test --locked --features test262-host \
104105
--test unsupported_diagnostics \
105106
--test oracle_create_realm --test oracle_host_gc --test oracle_is_html_dda
@@ -131,6 +132,7 @@ jobs:
131132
cargo clippy --locked --test oracle_member_access -- -D warnings
132133
cargo clippy --locked --test oracle_template_semantics -- -D warnings
133134
cargo clippy --locked --test oracle_global_semantics -- -D warnings
135+
cargo clippy --locked --test oracle_proxy_reflect -- -D warnings
134136
cargo clippy --locked -p quickjs-oxide --features test262-host \
135137
--lib --bins -- -D warnings
136138
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
@@ -129,3 +129,5 @@ check_registry templates "Template semantics" tests/oracle_template_semantics.rs
129129
tests/oracle/templates oracle/templates oracle_
130130
check_registry global "Global semantics" tests/oracle_global_semantics.rs \
131131
tests/oracle/global oracle/global oracle_global_
132+
check_registry proxy_reflect "Proxy and Reflect" tests/oracle_proxy_reflect.rs \
133+
tests/oracle/proxy_reflect oracle/proxy_reflect oracle_

tests/oracle_proxy.rs renamed to tests/oracle/proxy_reflect/oracle_proxy.rs

File renamed without changes.

tests/oracle_reflect_intrinsic.rs renamed to tests/oracle/proxy_reflect/oracle_reflect_intrinsic.rs

File renamed without changes.

tests/oracle_proxy_reflect.rs

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

0 commit comments

Comments
 (0)