This patch shows how to use the spdk_mock library which now only consists of --wrap capability for a few functions. Next will be a patch that provides a generic mock capability to use either the --wrap feature or a combination of globals and stubs to make adding more UT easier wrt mocking. After that is in place nvme_ut.c will be updated to use the new library for all mocking. Change-Id: I1a6ffb722da043bb70bd4cfe1afa7c5e39a0fccb Signed-off-by: Paul Luse <paul.e.luse@intel.com> Reviewed-on: https://review.gerrithub.io/365074 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> |
||
---|---|---|
.. | ||
assert.h | ||
bdev.h | ||
copy_engine.h | ||
event.h | ||
log.h | ||
spdk_mock.h |