Spdk/test/unit/lib/nvme
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
..
nvme_ctrlr_cmd.c test: move NVMe library tests to test/unit 2017-06-21 16:51:12 -04:00
nvme_ctrlr.c nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
nvme_ns_cmd.c nvme/unit:add two unit tests for IO compare operation 2017-08-01 16:59:51 -04:00
nvme_ns.c test: move NVMe library tests to test/unit 2017-06-21 16:51:12 -04:00
nvme_pcie.c test: move NVMe library tests to test/unit 2017-06-21 16:51:12 -04:00
nvme_qpair.c test: move NVMe library tests to test/unit 2017-06-21 16:51:12 -04:00
nvme_quirks.c test: move NVMe library tests to test/unit 2017-06-21 16:51:12 -04:00
nvme.c unit test: add new mock macro and use macros in nvme_ut.c 2017-08-01 17:29:43 -04:00
Makefile test: move NVMe library tests to test/unit 2017-06-21 16:51:12 -04:00