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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ jobs:
save-if: ${{ github.event_name != 'merge_group' }}

- name: cargo nextest
run: cargo nextest run --workspace --locked --all-features --no-fail-fast
run: cargo nextest run --workspace --locked --all-features --benches --no-fail-fast

- name: cargo test --doc
run: cargo test --doc --workspace --locked --all-features --no-fail-fast
Expand Down
26 changes: 24 additions & 2 deletions wind_tunnel/benches/formatting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,16 @@ fn build_select_catalog() -> Catalog {

fn build_call_catalog_no_opts() -> Catalog {
let strings = ["main", "name"];
let funcs = [
FuncEntry {
name_str_id: 0,
static_options: vec![],
},
FuncEntry {
name_str_id: 1,
static_options: vec![],
},
];
let code = vec![
vm::OP_LOAD_ARG,
1,
Expand All @@ -224,20 +234,31 @@ fn build_call_catalog_no_opts() -> Catalog {
vm::OP_OUT_VAL,
vm::OP_HALT,
];
let bytes = build_catalog(
let bytes = build_catalog_with_funcs(
&strings,
"",
&[MessageEntry {
name_str_id: 0,
entry_pc: 0,
}],
&code,
&funcs,
);
Catalog::from_bytes(&bytes).expect("valid benchmark catalog")
}

fn build_call_catalog_with_opts() -> Catalog {
let strings = ["main", "name", "style", "short", "currency", "USD"];
let funcs = [
FuncEntry {
name_str_id: 0,
static_options: vec![],
},
FuncEntry {
name_str_id: 1,
static_options: vec![],
},
];
let code = vec![
vm::OP_LOAD_ARG,
1,
Expand Down Expand Up @@ -272,14 +293,15 @@ fn build_call_catalog_with_opts() -> Catalog {
vm::OP_OUT_VAL,
vm::OP_HALT,
];
let bytes = build_catalog(
let bytes = build_catalog_with_funcs(
&strings,
"",
&[MessageEntry {
name_str_id: 0,
entry_pc: 0,
}],
&code,
&funcs,
);
Catalog::from_bytes(&bytes).expect("valid benchmark catalog")
}
Expand Down