Lines Matching refs:runner
78 SRunner *runner = calloc(1, sizeof(SRunner)); in srunner_create() local
79 if (runner != NULL) { in srunner_create()
80 runner->suite = suite; in srunner_create()
82 return runner; in srunner_create()
101 add_failure(SRunner *runner, int verbosity) in add_failure() argument
103 runner->nfailures++; in add_failure()
111 srunner_run_all(SRunner *runner, int verbosity) in srunner_run_all() argument
115 assert(runner != NULL); in srunner_run_all()
116 suite = runner->suite; in srunner_run_all()
121 runner->nchecks++; in srunner_run_all()
126 add_failure(runner, verbosity); in srunner_run_all()
133 add_failure(runner, verbosity); in srunner_run_all()
141 add_failure(runner, verbosity); in srunner_run_all()
150 int passed = runner->nchecks - runner->nfailures; in srunner_run_all()
151 double percentage = ((double) passed) / runner->nchecks; in srunner_run_all()
154 display, runner->nchecks, runner->nfailures); in srunner_run_all()
171 srunner_ntests_failed(SRunner *runner) in srunner_ntests_failed() argument
173 assert(runner != NULL); in srunner_ntests_failed()
174 return runner->nfailures; in srunner_ntests_failed()
178 srunner_free(SRunner *runner) in srunner_free() argument
180 free(runner->suite); in srunner_free()
181 free(runner); in srunner_free()