- TestRunner_t ptr = calloc(1,sizeof(s_TestRunner_t));
-
- if(NULL == ptr){
- setErrno(E_TEST_RUNNER_ALLOCATION_FAILED);
- return NULL;
- }
-
- ptr->buffer = Buffer_new();
-
- if(NULL == ptr->buffer){
- TestRunner_free(ptr);
- return NULL;
- }
-
- ptr->testSuite = TestSuite_new();
-
- if(NULL == ptr->testSuite){
- TestRunner_free(ptr);
- return NULL;
- }
-
- setErrno(E_SUCCESS);
- return ptr;
+ TestRunner_t ptr = calloc(1, sizeof(s_TestRunner_t));
+
+ if (NULL == ptr) {
+ setErrno(E_TEST_RUNNER_ALLOCATION_FAILED);
+ return NULL;
+ }
+
+ ptr->buffer = Buffer_new();
+
+ if (NULL == ptr->buffer) {
+ TestRunner_free(ptr);
+ return NULL;
+ }
+
+ ptr->testSuite = TestSuite_new();
+
+ if (NULL == ptr->testSuite) {
+ TestRunner_free(ptr);
+ return NULL;
+ }
+
+ setErrno(E_SUCCESS);
+ return ptr;