Commit 1e608338 authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Fabio Baltieri
Browse files

tests: drivers: can: shell: verify can_get_core_clock() call count



Verify the call count of can_get_core_clock() after executing "can show"
shell subcommand.

Signed-off-by: default avatarHenrik Brix Andersen <hebad@vestas.com>
parent 927c7ba1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -120,6 +120,8 @@ ZTEST(can_shell, test_can_show)
	zassert_equal(fake_can_get_capabilities_fake.call_count, 1,
		      "get_capabilities function not called");
	zassert_equal(fake_can_get_state_fake.call_count, 1, "get_state function not called");
	zassert_equal(fake_can_get_core_clock_fake.call_count, 1,
		      "get_core_clock function not called");
}

ZTEST(can_shell, test_can_bitrate_missing_value)