void popping_item_takes_us_back_to_the_previous_item() { Breadcrumb *breadcrumb = create_breadcrumb(); push_breadcrumb(breadcrumb, "Hello"); push_breadcrumb(breadcrumb, "Goodbye"); pop_breadcrumb(breadcrumb); assert_string_equal(get_current_from_breadcrumb(breadcrumb), "Hello"); }
void reporter_finish(TestReporter *reporter, const char *filename, int line, const char *message) { int status = read_reporter_results(reporter); if (status == FINISH_NOTIFICATION_NOT_RECEIVED) { va_list no_arguments; memset(&no_arguments, 0, sizeof(va_list)); reporter->exceptions++; (*reporter->show_incomplete)(reporter, filename, line, message, no_arguments); } pop_breadcrumb((CgreenBreadcrumb *)reporter->breadcrumb); }
void popping_last_name_leaves_breadcrumb_empty() { Breadcrumb *breadcrumb = create_breadcrumb(); push_breadcrumb(breadcrumb, "Hello"); pop_breadcrumb(breadcrumb); assert_equal(get_current_from_breadcrumb(breadcrumb), NULL); }
void reporter_finish_suite(TestReporter *reporter, const char *filename, int line) { (void) filename; (void) line; read_reporter_results(reporter); pop_breadcrumb((CgreenBreadcrumb *)reporter->breadcrumb); }
void reporter_finish(TestReporter *reporter, const char *name) { read_reporter_results(reporter); pop_breadcrumb((CgreenBreadcrumb *)reporter->breadcrumb); }