Go to file
Andreea Florescu b49993b636 [i2c] update existing unit tests
Updated the existing unit tests to map to the new implemented
abstraction.

In the process of updating the tests, a few other worth mentioning
changes are implemented:
- when initializing a resource needed for the test, it is a best
practice to keep any updates that change the test result in the same
function. This was not followed as the requests vector was initialized
in the test, and was cleared in a function that was asserting results.
This is an unexpected behavior, and is now removed. The requests are
always initialized in the test before using them (and clear is no longer
used).
- `assert_results` is deleted because it was hard to read which results
where asserted. It is also not necessary to mock functions in that way
because now we can mock only the parts we need from the device
implementation.

The tests are incomplete though because we also need to check the error
returned. This should be implemented in a future commit to keep things
separated.

Signed-off-by: Andreea Florescu <fandree@amazon.com>
2021-09-22 22:24:45 +03:00
.cargo Initial commit 2021-05-26 10:18:40 +03:00
.github dependabot: Allow updating dependencies 2021-09-06 12:54:53 +05:30
rust-vmm-ci@ae7db2d98a build(deps): bump rust-vmm-ci from 1311bfa to ae7db2d 2021-09-06 06:57:46 +00:00
src/i2c [i2c] update existing unit tests 2021-09-22 22:24:45 +03:00
.gitignore Add .gitignore 2021-08-19 09:52:14 +03:00
.gitmodules Initial commit 2021-05-26 10:18:40 +03:00
Cargo.toml Convert to virtual manifest and add i2c workspace 2021-08-19 09:52:14 +03:00
CODEOWNERS i2c: Update CODEOWNERS 2021-08-19 09:52:14 +03:00
coverage_config_x86_64.json i2c: Add tests to cover basic backend operations 2021-09-14 11:00:56 +03:00
LICENSE-APACHE Initial commit 2021-05-26 10:18:40 +03:00
README.md i2c: Update README.md and add one for i2c 2021-08-19 09:52:14 +03:00

vhost-device

Design

This repository hosts various 'vhost-user' device backends in their own crates. See their individual README.md files for specific information about those crates.

Here is the list of device backends that we support: