numam-spdk/include/spdk_internal
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
..
assert.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
bdev.h add VTune support: spin-wait stat 2017-07-18 15:33:56 -04:00
copy_engine.h io_channel: Remove per-channel priority 2017-05-26 13:42:19 -04:00
event.h event: remove spdk_app_init 2017-06-15 18:26:52 -04:00
log.h log: Reduce lots of duplicated code 2017-06-20 13:34:47 -04:00
mock.h unit test: add new mock macro and use macros in nvme_ut.c 2017-08-01 17:29:43 -04:00