Next: Report Reference, Previous: Test Reference, Up: C API Reference [Contents][Index]
Note: the lifetime of test state objects is semantically bound to the call where it is received as parameter. Once the scope of the function call ends, the object is not considered valid anymore3 and any usage of its value is undefined.
Opaque type, representation of the internal state of the test execution.
The following function is the main driver of the benchmark. It performs the data collection and determines if the test code must be executed again.
Preconditions:
Effects:
Postconditions:
true
if the test should perform at least
one iteration more according to its constraints.
Preconditions:
Effects:
Postconditions:
Preconditions:
Effects:
Postconditions:
micro_benchmark_test_case_add_dimension
was called at least
dimension+1 times, the returned value is one of the values
provided call number dimension, starting from 0, to
micro_benchmark_test_case_add_dimension
to the test associated
to state.
micro_benchmark_test_case_add_dimension
was called less than
dimension+1 times.
Preconditions:
Effects:
Postconditions:
NULL
unless
micro_benchmark_test_case_set_data
was called. In the latter
case, the value of the object pointer provided to
micro_benchmark_test_case_set_data
is returned.
micro_benchmark_test_case_set_data
was called. In the
latter case, the value of the object pointer provided to
micro_benchmark_test_case_set_data
is returned.
Preconditions:
Effects:
Postconditions:
Preconditions:
Effects:
Postconditions:
micro_benchmark_state_set_name
was called, the value
returned is equivalent to the value provided to
micro_benchmark_state_set_name
.
micro_benchmark_state_set_name
was not called, the value
returned is equivalent to the value provided to
micro_benchmark_suite_register_test
.
This includes using the reference obtained at the set up stage during the test or tear down stages, or the reference obtained at the test stage during tear down.
Next: Report Reference, Previous: Test Reference, Up: C API Reference [Contents][Index]