Mock is not sufficient, because I would like to implement tests based on fuzzy testing for machin.parallel.distributed.election.ElectionGroupStableBase and other higher level modules based on this core. Common white box testing and black box testing are not good enough for testing distributed core functions, so my testing idea comes from this github repo and the blog post from its “Fuzzing” section blog.
I think I will try to implement a simple framework myself today, maybe generate fuzzy data with boofuzz and write a rpc simulation layer. I am still looking forward to other ideas of your team!