Provides abstraction and convention for output of test results. More...
Provides abstraction and convention for output of test results.
Definition in file result_output.h.
#include <stdint.h>#include <stdbool.h>#include <stddef.h>#include "result_output_types.h"
Include dependency graph for result_output.h:Go to the source code of this file.
Typedefs | |
| typedef struct turo | turo_t |
| Type for a TURO object. More... | |
Functions | |
| void | turo_init (turo_t *ctx) |
| Provides initial values for the turo context. More... | |
| void | turo_container_open (turo_t *ctx) |
| Outputs a container open. More... | |
| void | turo_s32 (turo_t *ctx, int32_t val) |
| Outputs a signed 32 bit integer. More... | |
| void | turo_u32 (turo_t *ctx, uint32_t val) |
| Outputs an unsigned 32 bit integer. More... | |
| void | turo_s64 (turo_t *ctx, int64_t val) |
| Outputs a signed 64 bit integer. More... | |
| void | turo_u64 (turo_t *ctx, uint64_t val) |
| Outputs a formatted result unsigned 64 bit integer. More... | |
| void | turo_float (turo_t *ctx, float val) |
| Outputs a formatted float result of varied precision. More... | |
| void | turo_string (turo_t *ctx, const char *str) |
| Outputs a formatted string string. More... | |
| void | turo_bool (turo_t *ctx, bool val) |
| Outputs a formatted boolean result. More... | |
| void | turo_dict_open (turo_t *ctx) |
| Outputs a formatted open of a dictionary result. More... | |
| void | turo_dict_key (turo_t *ctx, const char *key) |
| Outputs a formatted open of a dictionary result. More... | |
| void | turo_dict_close (turo_t *ctx) |
| Outputs a formatted close of a dictionary result. More... | |
| void | turo_array_open (turo_t *ctx) |
| Outputs a formatted open of an array result. More... | |
| void | turo_array_close (turo_t *ctx) |
| Outputs a formatted close of an array result. More... | |
| void | turo_container_close (turo_t *ctx, int exit_status) |
| Outputs a formatted close of a container result. More... | |
| void | turo_array_u8 (turo_t *ctx, uint8_t *vals, size_t size) |
| Outputs a formatted uint8 array result. More... | |
| void | turo_array_s32 (turo_t *ctx, int32_t *vals, size_t size) |
| Outputs a int32 array result. More... | |
| void | turo_dict_string (turo_t *ctx, const char *key, const char *val) |
| Outputs a dict with string data. More... | |
| void | turo_dict_s32 (turo_t *ctx, const char *key, int32_t val) |
| Outputs a dict with integer data. More... | |
| void | turo_simple_s32 (turo_t *ctx, int32_t val) |
| Outputs a full successful int32 turo result. More... | |
| void | turo_simple_array_u8 (turo_t *ctx, uint8_t *vals, size_t size) |
| Outputs a full successful uint8 array turo result. More... | |
| void | turo_simple_array_s32 (turo_t *ctx, int32_t *vals, size_t size) |
| Outputs a full successful int32 array turo result. More... | |
| void | turo_simple_dict_string (turo_t *ctx, const char *key, const char *val) |
| Outputs a full successful dict with string turo result. More... | |
| void | turo_simple_dict_s32 (turo_t *ctx, const char *key, int32_t val) |
| Outputs a full successful dict with an integer turo result. More... | |
| void | turo_simple_exit_status (turo_t *ctx, int exit_status) |
| Outputs a full turo result with exit code. More... | |