linux-stable/Documentation/dev-tools/kunit
Benjamin Berg 292010ee50 kunit: add parameter generation macro using description from array
The existing KUNIT_ARRAY_PARAM macro requires a separate function to
get the description. However, in a lot of cases the description can
just be copied directly from the array. Add a second macro that
avoids having to write a static function just for a single strscpy.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Reviewed-by: David Gow <davidgow@google.com>
Link: https://msgid.link/20231220151952.415232-2-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2024-01-03 15:35:04 +01:00
..
api Documentation: Add Function Redirection API docs 2023-02-08 14:28:17 -07:00
architecture.rst Documentation: kunit: Rename references to kunit_abort() 2023-06-06 08:57:37 -06:00
faq.rst Documentation: Kunit: Add ref for other kinds of tests 2022-09-30 13:19:11 -06:00
index.rst Documentation: kunit: Fix "How Do I Use This" / "Next Steps" sections 2022-12-12 14:13:48 -07:00
kunit_suitememorydiagram.svg Documentation: KUnit: Added KUnit Architecture 2021-12-23 12:49:06 -07:00
run_manual.rst Documentation: kunit: Reorganize documentation related to running tests 2021-12-23 12:49:43 -07:00
run_wrapper.rst kunit: Add documentation of KUnit test attributes 2023-07-26 13:29:46 -06:00
running_tips.rst kunit: Add documentation of KUnit test attributes 2023-07-26 13:29:46 -06:00
start.rst Documentation: Kunit: add MODULE_LICENSE to sample code 2023-05-31 12:42:40 -06:00
style.rst Documentation: KUnit: Restyle Test Style and Nomenclature page 2021-12-23 12:49:43 -07:00
usage.rst kunit: add parameter generation macro using description from array 2024-01-03 15:35:04 +01:00