Next: , Up: Report Reference   [Contents][Index]


4.4.1 Suite Report Reference

C Data Type: micro_benchmark_report

Opaque representation of the information collected by the suite execution.

The lifetime of these objects is bound to the suite that generated them. Calling micro_benchmark_suite_release ends the lifetime of all reports associated to that suite.


C Report Function: const char * micro_benchmark_report_get_name (micro_benchmark_report report)

Preconditions:

  1. report must have been obtained as the return value of a call to micro_benchmark_suite_get_report.

Effects:

  1. None.

Postconditions:

  1. The value returned points to a valid, zero-ended array of characters.
  2. The value returned is equivalent to the value provided to the call of micro_benchmark_suite_create that returned the suite associated to report.


C Report Function: size_t micro_benchmark_report_get_number_of_tests (micro_benchmark_report report)

Preconditions:

  1. report must have been obtained as the return value of a call to micro_benchmark_suite_get_report.

Effects:

  1. None.

Postconditions:

  1. The returned value is the number of test cases executed by the suite associated to report.


C Report Function: micro_benchmark_test_report micro_benchmark_report_get_test_report (micro_benchmark_report report, size_t number)

Preconditions:

  1. report must have been obtained as the return value of a call to micro_benchmark_suite_get_report.
  2. number is less than the value returned by micro_benchmark_report_get_number_of_tests (report).

Effects:

  1. None.

Postconditions:

  1. The returned value is a valid object.
  2. The returned value contains the results of the test case number stored on report, counting from zero.



Next: Test Report Reference, Up: Report Reference   [Contents][Index]