Introduce golden file mechanism for tests
This commit is contained in:
@@ -38,4 +38,10 @@ void assert_str(const char* expected, const char* actual, const char* msg);
|
||||
*/
|
||||
void assert_log(const char* expected, const char* msg);
|
||||
|
||||
/**
|
||||
* Asserts that the logged output matches the content of a file.
|
||||
* If GENERATE_GOLDEN=1, the file is overwritten with the actual output.
|
||||
*/
|
||||
void assert_log_file(const char* filepath, const char* msg);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user