text/plain
•
884 B
•
21 lines
#pragma once
#include <stdbool.h>
bool test_prepare_storage(void);
bool test_storage_mkdir_p(const char* dir_rel);
bool test_copy_fixture_to_storage(const char* fixture_rel,
const char* storage_rel);
bool test_copy_storage_file(const char* src_rel, const char* dst_rel);
bool test_write_storage_text(const char* storage_rel, const char* text);
bool test_storage_file_exists(const char* storage_rel);
// Preserves file at path into backup path if present.
bool test_preserve_storage_file(const char* path,
const char* backup_path,
bool* had_original);
// Restores file from backup when had_original=true, otherwise removes it.
bool test_restore_storage_file(const char* path,
const char* backup_path,
bool had_original);