aboutsummaryrefslogtreecommitdiff
path: root/unit/include/bh/unit.h
diff options
context:
space:
mode:
Diffstat (limited to 'unit/include/bh/unit.h')
-rwxr-xr-xunit/include/bh/unit.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/unit/include/bh/unit.h b/unit/include/bh/unit.h
index 6667ca4..3b3b2b6 100755
--- a/unit/include/bh/unit.h
+++ b/unit/include/bh/unit.h
@@ -4,7 +4,7 @@
#include <stdio.h>
#include <math.h>
-typedef int (*bh_unit_cb_t)(void);
+typedef int (*BH_UnitCallback)(void);
#define BH_VERIFY(e) \
do { \
@@ -34,7 +34,23 @@ typedef int (*bh_unit_cb_t)(void);
} while(0)
-void bh_unit_add(const char *name, bh_unit_cb_t func);
-int bh_unit_run(void);
+
+/**
+ * Adds unit test \a cb with name \a name for the testing.
+ *
+ * \param name Unit test name
+ * \param cb Unit test function
+ */
+void BH_UnitAdd(const char *name,
+ BH_UnitCallback cb);
+
+
+/**
+ * Runs unit tests.
+ *
+ * \return On success, returns zero.
+ * \return On failure, returns error code.
+ */
+int BH_UnitRun(void);
#endif /* BH_UNIT_H */