summaryrefslogtreecommitdiff
path: root/api_test/harness.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-12-28 16:05:42 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-12-28 16:05:42 -0800
commit11a29f6219ab9c72c0863e47ba386d7b3e1162d5 (patch)
tree7811d042876a5e6061e5543e48ec2e42f75e8aa5 /api_test/harness.h
parentc22b173c1fee932a9469f95c71f74a9ec0ca1784 (diff)
Reformat sources.
Diffstat (limited to 'api_test/harness.h')
-rw-r--r--api_test/harness.h33
1 files changed, 13 insertions, 20 deletions
diff --git a/api_test/harness.h b/api_test/harness.h
index 55a6232..53b9889 100644
--- a/api_test/harness.h
+++ b/api_test/harness.h
@@ -6,37 +6,30 @@ extern "C" {
#endif
typedef struct {
- int test_num;
- int num_passed;
- int num_failed;
- int num_skipped;
+ int test_num;
+ int num_passed;
+ int num_failed;
+ int num_skipped;
} test_batch_runner;
-test_batch_runner*
-test_batch_runner_new();
+test_batch_runner *test_batch_runner_new();
-void
-SKIP(test_batch_runner *runner, int num_tests);
+void SKIP(test_batch_runner *runner, int num_tests);
-void
-OK(test_batch_runner *runner, int cond, const char *msg, ...);
+void OK(test_batch_runner *runner, int cond, const char *msg, ...);
-void
-INT_EQ(test_batch_runner *runner, int got, int expected, const char *msg, ...);
+void INT_EQ(test_batch_runner *runner, int got, int expected, const char *msg,
+ ...);
-void
-STR_EQ(test_batch_runner *runner, const char *got, const char *expected,
- const char *msg, ...);
+void STR_EQ(test_batch_runner *runner, const char *got, const char *expected,
+ const char *msg, ...);
-int
-test_ok(test_batch_runner *runner);
+int test_ok(test_batch_runner *runner);
-void
-test_print_summary(test_batch_runner *runner);
+void test_print_summary(test_batch_runner *runner);
#ifdef __cplusplus
}
#endif
#endif
-