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

Design a mocking framework for virtio queues #62

Closed
andreeaflorescu opened this issue Jun 9, 2021 · 1 comment
Closed

Design a mocking framework for virtio queues #62

andreeaflorescu opened this issue Jun 9, 2021 · 1 comment

Comments

@andreeaflorescu
Copy link
Member

As part of this task we want to define what & how we want to implement the mocking framework. The delivery of this task is a design document that can be used to further break down #61.

@krady21
Copy link
Contributor

krady21 commented Aug 22, 2021

Instead of writing a mock framework from scratch, we decided to add two helper functions:

  • The first one would allow us to more easily create descriptor chains by adding a new structure called `MockDescriptor. This struct would provide users with a way to incrementally create descriptors, similar to how a builder pattern works.
  • The second one would allow us to write a buffer (&[u8]) to the underlying memory regions that a chain of descriptors point to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants