19 bad_input(
void **state) {
25 starts_with(
void **state) {
38 main(
int argc,
char **argv)
40 const struct CMUnitTest tests[] = {
41 cmocka_unit_test(bad_input),
42 cmocka_unit_test(starts_with),
45 cmocka_set_message_output(CM_OUTPUT_TAP);
46 return cmocka_run_group_tests(tests, NULL, NULL);
int main(int argc, char **argv)
bool pcmk__starts_with(const char *str, const char *prefix)
Check whether a string starts with a certain sequence.