Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor tests of BlockMachineProcessor #2276

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

georgwiese
Copy link
Collaborator

@georgwiese georgwiese commented Dec 20, 2024

With this PR, we expect a "main" machine with a connecting identity to the block machine, and run the "normal" machine extractor on the entire PIL.

Besides reducing the amount of code, this gives us more objects, like MutableState.

let machines = MachineExtractor::new(&fixed_data).split_out_machines(retained_identities);
let mutable_state = MutableState::new(machines.into_iter(), &|_| {
Err("Query not implemented".to_string())
});
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to extract this block as a function, but it doesn't compile...

@georgwiese georgwiese changed the title Extract test setup functions Refactor tests of BlockMachineProcessor Dec 20, 2024
@georgwiese georgwiese marked this pull request as ready for review December 20, 2024 16:19
github-merge-queue bot pushed a commit that referenced this pull request Dec 20, 2024
Pulled out of #2276. Needed to make the code generated for the Binary
machine compile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant