Spdk/test
Paul Luse ca2931227e unit test: add new mock macro and use macros in nvme_ut.c
No new coverage added, just used the STUB macros in nvme UT
to make sure they cover all the cases and discovered a few small
tweaks needed: (1) added _V variant to declare void stubs (if
someone sees an easy way to make DECLARE_STUB handle this case
that'd be cleaner but I don't think its a big deal) and (2)
updated DECLARE_STUB so that it can set a struct return value
by adding {} to the ut_ variable set statement.

Also ordered the declarations simply for readability, the _V
first, the regular stubs next, the _P next and then the stubs
that don't have a macro to cover them because they do something
other than return a specific value.

Change-Id: Idd8919d2b9e9daa76dd629364ea1d0285657fa81
Signed-off-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/368420
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2017-08-01 17:29:43 -04:00
..
app test/app/stub: remove sentinel file on shutdown 2017-06-23 11:02:04 -04:00
blobfs/rocksdb test, blofs: remove the RESULTS_DIR prefix 2017-07-25 15:56:57 -04:00
cpp_headers test/cpp_headers: autogenerate header test files 2016-10-03 10:24:18 -07:00
iscsi_tgt rbd: add option for using installed version of ceph on rbd tests 2017-08-01 16:07:02 -04:00
lib makefiles: remove DPDK_INC cflags, no longer needed 2017-08-01 13:41:26 -04:00
nvmf log: Remove configurable log facility 2017-07-05 19:28:29 -04:00
unit unit test: add new mock macro and use macros in nvme_ut.c 2017-08-01 17:29:43 -04:00
vhost vhost_scsi: implemented abstract vhost event layer 2017-07-20 13:19:26 -04:00
Makefile test: begin moving unit tests into test/unit 2017-06-16 16:43:48 -04:00
spdk_cunit.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00