1 /*
2  * Copyright (c) 2022 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include "host_mocks/assert.h"
8 
9 #include <zephyr/bluetooth/bluetooth.h>
10 #include <zephyr/kernel.h>
11 
12 #include <host/keys.h>
13 
14 ZTEST_SUITE(bt_keys_clear_invalid_inputs, NULL, NULL, NULL, NULL, NULL);
15 
16 /*
17  *  Test function with NULL key reference
18  *
19  *  Constraints:
20  *   - Key reference is passed as NULL
21  *
22  *  Expected behaviour:
23  *   - An assertion fails and execution stops
24  */
ZTEST(bt_keys_clear_invalid_inputs,test_null_key_reference)25 ZTEST(bt_keys_clear_invalid_inputs, test_null_key_reference)
26 {
27 	expect_assert();
28 	bt_keys_clear(NULL);
29 }
30