mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-20 21:06:09 +08:00
Carry the new layout fields through the hand-built fixtures
The record fixtures spell their metas and resolved layouts out in full, so the name-from-input fields reach them as empty. `named_value!`'s example moves to `ignore`: its `for T` arm implements a core-types trait on the value type, which only core-types itself may do. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
9b92edc0e9
commit
37c0d0852d
@@ -285,6 +285,7 @@ mod tests {
|
||||
// The fixtures wire constants into every eager input, which the compiler
|
||||
// pass records as lane-invariant.
|
||||
let resolved = record::RecordLayout {
|
||||
named_writes: Vec::new(),
|
||||
lane_invariant: u32::MAX,
|
||||
..meta.resolve(inputs)
|
||||
};
|
||||
@@ -294,6 +295,7 @@ mod tests {
|
||||
|
||||
fn install_flip<N: Node<ContextImpl<'static>>>(mut node: N, layout: &Layout) -> N {
|
||||
let bundle = record::RecordLayout {
|
||||
named_writes: Vec::new(),
|
||||
frame_bytes: layout.frame_bytes(),
|
||||
plan: Vec::new(),
|
||||
layout: layout.clone(),
|
||||
@@ -420,6 +422,8 @@ mod tests {
|
||||
|
||||
fn routing_meta(source: u8, level_delta: i8) -> record::LayoutMeta {
|
||||
record::LayoutMeta {
|
||||
named_writes: Vec::new(),
|
||||
folded_names: Vec::new(),
|
||||
sources: vec![source],
|
||||
reads: vec![],
|
||||
element: record::ElementSpec::Carried,
|
||||
|
||||
Reference in New Issue
Block a user