Skip to content

Commit

Permalink
test, feat: return test result in test.run.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Nov 8, 2022
1 parent 53fcd5f commit e72404c
Show file tree
Hide file tree
Showing 6 changed files with 305 additions and 82 deletions.
4 changes: 2 additions & 2 deletions fibjs/include/ifs/test.h
Expand Up @@ -34,7 +34,7 @@ class test_base : public object_base {
static result_t after(v8::Local<v8::Function> func);
static result_t beforeEach(v8::Local<v8::Function> func);
static result_t afterEach(v8::Local<v8::Function> func);
static result_t run(int32_t mode, int32_t& retVal);
static result_t run(int32_t mode, v8::Local<v8::Object>& retVal);
static result_t setup();
static result_t get_slow(int32_t& retVal);
static result_t set_slow(int32_t newVal);
Expand Down Expand Up @@ -272,7 +272,7 @@ inline void test_base::s_static_afterEach(const v8::FunctionCallbackInfo<v8::Val

inline void test_base::s_static_run(const v8::FunctionCallbackInfo<v8::Value>& args)
{
int32_t vr;
v8::Local<v8::Object> vr;

METHOD_NAME("test.run");
METHOD_ENTER();
Expand Down

0 comments on commit e72404c

Please sign in to comment.