blob: c8bf0e0b0df73eee18d82afbdb4928492dc01b43 [file] [log] [blame]
/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "host_mocks/assert.h"
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/kernel.h>
#include <host/keys.h>
ZTEST_SUITE(bt_keys_find_invalid_inputs, NULL, NULL, NULL, NULL, NULL);
/*
* Test calling bt_keys_find() with NULL address
*
* Constraints:
* - Any key type can be used
* - Any ID value can be used
* - Address is passed as NULL
*
* Expected behaviour:
* - An assertion fails and execution stops
*/
ZTEST(bt_keys_find_invalid_inputs, test_null_device_address)
{
expect_assert();
bt_keys_find(0x00, 0x00, NULL);
}