platform/chrome: cros_ec_proto: add Kunit test for cros_ec_map_error()
authorTzung-Bi Shih <tzungbi@kernel.org>
Wed, 22 Jun 2022 04:10:35 +0000 (04:10 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 20 Jul 2022 01:22:58 +0000 (01:22 +0000)
commit1242688fc2f080530b6414ef5f1ae63fb548a6b0
treede997e5f7c63d687a39a4182824a89eea26a1b64
parent74bed42fd5fa4d3ac9883b27b0d761564f3b9bf9
platform/chrome: cros_ec_proto: add Kunit test for cros_ec_map_error()

cros_ec_cmd_xfer_status() is the only exported function that calls
static function cros_ec_map_error().

Add Kunit test for cros_ec_map_error() through calling
cros_ec_cmd_xfer_status().

Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Link: https://lore.kernel.org/r/20220622041040.202737-3-tzungbi@kernel.org
drivers/platform/chrome/cros_ec_proto_test.c