Sha256: 9db4959b2c2017869d2f6f4e5d8a4d1e26a8f4d01398b0b64930c10a67b0165a

Contents?: true

Size: 1.31 KB

Versions: 25

Compression:

Stored size: 1.31 KB

Contents

static void clar_print_init(int test_count, int suite_count, const char *suite_names)
{
	(void)test_count;
	printf("Loaded %d suites: %s\n", (int)suite_count, suite_names);
	printf("Started\n");
}

static void clar_print_shutdown(int test_count, int suite_count, int error_count)
{
	(void)test_count;
	(void)suite_count;
	(void)error_count;

	printf("\n\n");
	clar_report_errors();
}

static void clar_print_error(int num, const struct clar_error *error)
{
	printf("  %d) Failure:\n", num);

	printf("%s::%s [%s:%d]\n",
		error->suite,
		error->test,
		error->file,
		error->line_number);

	printf("  %s\n", error->error_msg);

	if (error->description != NULL)
		printf("  %s\n", error->description);

	printf("\n");
	fflush(stdout);
}

static void clar_print_ontest(const char *test_name, int test_number, enum cl_test_status status)
{
	(void)test_name;
	(void)test_number;

	switch(status) {
	case CL_TEST_OK: printf("."); break;
	case CL_TEST_FAILURE: printf("F"); break;
	case CL_TEST_SKIP: printf("S"); break;
	}

	fflush(stdout);
}

static void clar_print_onsuite(const char *suite_name, int suite_index)
{
	if (_clar.report_suite_names)
		printf("\n%s", suite_name);

	(void)suite_index;
}

static void clar_print_onabort(const char *msg, ...)
{
	va_list argp;
	va_start(argp, msg);
	vfprintf(stderr, msg, argp);
	va_end(argp);
}

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
mathematical-1.6.20 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.18 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.14 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.13 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.12 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.11 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.10 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.9 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.8 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.7 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.6 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.5 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.4 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.3 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.2 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.1 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.6.0 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.5.12 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.5.0 ext/mathematical/mtex2MML/tests/clar/print.h
mathematical-1.4.2 ext/mathematical/mtex2MML/tests/clar/print.h