Rename Tester

This commit is contained in:
2026-06-26 15:53:08 +01:00
parent cdca775681
commit 28f95b1d41
34 changed files with 479 additions and 479 deletions
+8 -8
View File
@@ -4,7 +4,7 @@
#include <stdlib.h>
#include <string.h>
TestFuncResult test_commander_cmd_success(void) {
WpTestFuncResult test_commander_cmd_success(void) {
Str8List cmd = wapp_dbl_list(Str8);
wapp_dbl_list_push_back(Str8, &cmd, &wapp_str8_lit("echo"));
wapp_dbl_list_push_back(Str8, &cmd, &wapp_str8_lit("hello world"));
@@ -13,10 +13,10 @@ TestFuncResult test_commander_cmd_success(void) {
b8 succeeded = result.exited && result.exit_code == EXIT_SUCCESS &&
result.error == SHELL_ERR_NO_ERROR;
return wapp_tester_result(succeeded);
return wpTesterResult(succeeded);
}
TestFuncResult test_commander_cmd_failure(void) {
WpTestFuncResult test_commander_cmd_failure(void) {
Str8List cmd = wapp_dbl_list(Str8);
wapp_dbl_list_push_back(Str8, &cmd, &wapp_str8_lit("grep"));
@@ -24,10 +24,10 @@ TestFuncResult test_commander_cmd_failure(void) {
b8 failed = result.exited && result.exit_code != EXIT_SUCCESS &&
result.error == SHELL_ERR_NO_ERROR;
return wapp_tester_result(failed);
return wpTesterResult(failed);
}
TestFuncResult test_commander_cmd_out_buf_success(void) {
WpTestFuncResult test_commander_cmd_out_buf_success(void) {
Str8 buf = wapp_str8_buf(64);
Str8 expected = wapp_str8_buf(64);
char msg[] = "hello world";
@@ -41,10 +41,10 @@ TestFuncResult test_commander_cmd_out_buf_success(void) {
b8 succeeded = result.exited && result.exit_code == EXIT_SUCCESS &&
result.error == SHELL_ERR_NO_ERROR && wapp_str8_equal_to_count(&buf, &expected, strlen(msg));
return wapp_tester_result(succeeded);
return wpTesterResult(succeeded);
}
TestFuncResult test_commander_cmd_out_buf_failure(void) {
WpTestFuncResult test_commander_cmd_out_buf_failure(void) {
Str8 buf = wapp_str8_buf(4);
Str8 expected = wapp_str8_buf(64);
char msg[] = "hello world";
@@ -58,5 +58,5 @@ TestFuncResult test_commander_cmd_out_buf_failure(void) {
b8 failed = !result.exited && result.exit_code != EXIT_SUCCESS &&
result.error == SHELL_ERR_OUT_BUF_FULL && !wapp_str8_equal(&buf, &expected);
return wapp_tester_result(failed);
return wpTesterResult(failed);
}