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_find_addr_invalid_inputs, NULL, NULL, NULL, NULL, NULL);
15 
16 /*
17  *  Test function with NULL address
18  *
19  *  Constraints:
20  *   - Any ID value can be used
21  *   - Address is passed as NULL
22  *
23  *  Expected behaviour:
24  *   - An assertion fails and execution stops
25  */
ZTEST(bt_keys_find_addr_invalid_inputs,test_null_device_address)26 ZTEST(bt_keys_find_addr_invalid_inputs, test_null_device_address)
27 {
28 	expect_assert();
29 	bt_keys_find_addr(0x00, NULL);
30 }
31