Blame src/check_str.h

Packit 0b5880
/*
Packit 0b5880
 * Check: a unit test framework for C
Packit 0b5880
 * Copyright (C) 2001, 2002 Arien Malec
Packit 0b5880
 *
Packit 0b5880
 * This library is free software; you can redistribute it and/or
Packit 0b5880
 * modify it under the terms of the GNU Lesser General Public
Packit 0b5880
 * License as published by the Free Software Foundation; either
Packit 0b5880
 * version 2.1 of the License, or (at your option) any later version.
Packit 0b5880
 *
Packit 0b5880
 * This library is distributed in the hope that it will be useful,
Packit 0b5880
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 0b5880
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 0b5880
 * Lesser General Public License for more details.
Packit 0b5880
 *
Packit 0b5880
 * You should have received a copy of the GNU Lesser General Public
Packit 0b5880
 * License along with this library; if not, write to the
Packit 0b5880
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
Packit 0b5880
 * MA 02110-1301, USA.
Packit 0b5880
 */
Packit 0b5880
Packit 0b5880
#ifndef CHECK_STR_H
Packit 0b5880
#define CHECK_STR_H
Packit 0b5880
Packit 0b5880
/* Return a string representation of the given TestResult.  Return
Packit 0b5880
   value has been malloc'd, and must be freed by the caller */
Packit 0b5880
char *tr_str(TestResult * tr);
Packit 0b5880
Packit 0b5880
/* Return a string representation of the given TestResult message
Packit 0b5880
   without the test id or result type. This is suitable for separate
Packit 0b5880
   formatting of the test and the message. Return value has been 
Packit 0b5880
   malloc'd, and must be freed by the caller */
Packit 0b5880
char *tr_short_str(TestResult * tr);
Packit 0b5880
Packit 0b5880
/* Return a string representation of the given SRunner's run
Packit 0b5880
   statistics (% passed, num run, passed, errors, failures). Return
Packit 0b5880
   value has been malloc'd, and must be freed by the caller
Packit 0b5880
*/
Packit 0b5880
char *sr_stat_str(SRunner * sr);
Packit 0b5880
Packit 0b5880
char *ck_strdup_printf(const char *fmt, ...);
Packit 0b5880
Packit 0b5880
#endif /* CHECK_STR_H */