Lines Matching refs:result

74     napi_value result = nullptr;
75 ASSERT_CHECK_CALL(napi_create_object(env, &result));
76 ASSERT_CHECK_VALUE_TYPE(env, result, napi_object);
82 ASSERT_CHECK_CALL(napi_set_named_property(env, result, "strAttribute", strAttribute));
85 ASSERT_CHECK_CALL(napi_get_named_property(env, result, "strAttribute", &retStrAttribute));
92 ASSERT_CHECK_CALL(napi_set_named_property(env, result, "numberAttribute", numberAttribute));
95 ASSERT_CHECK_CALL(napi_get_property_names(env, result, &propNames));
116 napi_value result = nullptr;
117 ASSERT_CHECK_CALL(napi_create_object(env, &result));
118 ASSERT_CHECK_VALUE_TYPE(env, result, napi_object);
161 napi_value result = nullptr;
162 napi_create_object(env, &result);
170 napi_set_property(env, result, messageKey, messageValue);
175 return result;
182 bool result = false;
183 napi_is_callable(env, funcValue, &result);
184 ASSERT_TRUE(result);
191 napi_value result = nullptr;
194 napi_create_object(env, &result);
195 resultRef = NapiHelper::CreateReference(env, result, 1);
230 napi_value result = nullptr;
231 napi_create_object(env, &result);
239 napi_set_property(env, result, messageKey, messageValue);
244 return result;
251 bool result = false;
252 result = NapiHelper::IsCallable(env, funcValue);
253 ASSERT_TRUE(result);
272 napi_value result = nullptr;
273 napi_create_object(env, &result);
281 napi_set_property(env, result, messageKey, messageValue);
286 return result;
296 bool result = false;
297 result = NapiHelper::IsCallable(env, resultRef);
298 ASSERT_TRUE(result);
315 bool result = false;
316 result = NapiHelper::IsCallable(env, resultRef);
317 ASSERT_FALSE(result);
331 napi_value result = nullptr;
332 result = NapiHelper::GetGlobalObject(env);
335 ASSERT_CHECK_CALL(napi_get_named_property(env, result, "strAttribute", &retStrAttribute));
404 napi_value result = nullptr;
407 napi_create_object(env, &result);
408 resultRef = NapiHelper::CreateReference(env, result, 1);
425 napi_value result = nullptr;
426 result = NapiHelper::CreateUint32(env, testValue);
427 ASSERT_CHECK_VALUE_TYPE(env, result, napi_number);
443 napi_value result = nullptr;
446 napi_create_object(env, &result);
447 napi_create_reference(env, result, 1, &resultRef);
462 napi_value result = nullptr;
465 napi_create_object(env, &result);
466 napi_create_reference(env, result, 1, &resultRef);
483 napi_value result = nullptr;
484 result = NapiHelper::GetGlobalObject(env);
487 retStrAttribute = NapiHelper::GetNameProperty(env, result, "strAttribute");
494 napi_value result = nullptr;
495 result = NapiHelper::CreateBooleanValue(env, true);
496 ASSERT_CHECK_VALUE_TYPE(env, result, napi_boolean);
499 resultValue = NapiHelper::GetBooleanValue(env, result);
679 napi_value result = nullptr;
680 ASSERT_CHECK_CALL(napi_create_object(env, &result));
686 ASSERT_CHECK_CALL(napi_set_named_property(env, result, name, strAttribute));
688 bool res = NapiHelper::HasNameProperty(env, result, name);
695 napi_value result = nullptr;
696 ASSERT_CHECK_CALL(napi_create_object(env, &result));
699 bool res = NapiHelper::HasNameProperty(env, result, name);
716 napi_value result = NapiHelper::CreateObject(env);
726 napi_set_property(env, result, funcKey, funcAttribute);
729 napi_get_property_names(env, result, &propFuncValue);
740 napi_value result = nullptr;
741 ASSERT_CHECK_CALL(napi_create_uint32(env, testValue, &result));
742 ASSERT_CHECK_VALUE_TYPE(env, result, napi_number);
744 uint32_t resultValue = NapiHelper::GetUint32Value(env, result);
753 napi_value result = nullptr;
754 ASSERT_CHECK_CALL(napi_create_int32(env, testValue, &result));
756 int32_t resultValue = NapiHelper::GetInt32Value(env, result);
791 napi_value result = nullptr;
793 std::string str = NapiHelper::GetPrintString(env, result);
802 napi_value result = nullptr;
803 ASSERT_CHECK_CALL(napi_create_bigint_uint64(env, testValue, &result));
805 int32_t resultValue = NapiHelper::GetUint64Value(env, result);
813 napi_value result = NapiHelper::CreateObject(env);
819 ASSERT_CHECK_CALL(napi_set_named_property(env, result, "strAttribute", strAttribute));
822 ASSERT_CHECK_CALL(napi_get_named_property(env, result, "strAttribute", &retStrAttribute));
829 ASSERT_CHECK_CALL(napi_set_named_property(env, result, "numberAttribute", numberAttribute));
832 ASSERT_CHECK_CALL(napi_get_property_names(env, result, &propNames));