Skip to content

Commit 0767579

Browse files
committed
refactor(tests): consolidate template oracle targets
1 parent 5332658 commit 0767579

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
@@ -98,6 +98,7 @@ jobs:
9898
cargo test --locked --test oracle_unicode_lexical
9999
cargo test --locked --test oracle_binary_data
100100
cargo test --locked --test oracle_member_access
101+
cargo test --locked --test oracle_template_semantics
101102
cargo test --locked --features test262-host \
102103
--test unsupported_diagnostics \
103104
--test oracle_create_realm --test oracle_host_gc --test oracle_is_html_dda
@@ -127,6 +128,7 @@ jobs:
127128
cargo clippy --locked --test oracle_unicode_lexical -- -D warnings
128129
cargo clippy --locked --test oracle_binary_data -- -D warnings
129130
cargo clippy --locked --test oracle_member_access -- -D warnings
131+
cargo clippy --locked --test oracle_template_semantics -- -D warnings
130132
cargo clippy --locked -p quickjs-oxide --features test262-host \
131133
--lib --bins -- -D warnings
132134
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
@@ -125,3 +125,5 @@ check_registry binary_data "Binary data" tests/oracle_binary_data.rs \
125125
tests/oracle/binary_data oracle/binary_data oracle_
126126
check_registry member_access "Member access" tests/oracle_member_access.rs \
127127
tests/oracle/member_access oracle/member_access oracle_member_
128+
check_registry templates "Template semantics" tests/oracle_template_semantics.rs \
129+
tests/oracle/templates oracle/templates oracle_
File renamed without changes.
File renamed without changes.

tests/oracle_template_semantics.rs

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

0 commit comments

Comments
 (0)