1 /* 2 * Copyright (c) 2024 SwanLink (Jiangsu) Technology Development Co., LTD. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef JSVM_XTS_NAPI_BIGINT_TEST_H 17 #define JSVM_XTS_NAPI_BIGINT_TEST_H 18 19 #include "jsvm.h" 20 #include "jsvm_common.h" 21 #include "jsvm_types.h" 22 #include "native_common.h" 23 #include "test_entry.h" 24 #include <cstdint> 25 #include <cstdio> 26 #include <malloc.h> 27 #include <ctime> 28 #include <thread> 29 #include <uv.h> 30 #include <bits/alltypes.h> 31 #include <unistd.h> 32 #include <cstring> 33 #include <fstream> 34 #include <string> 35 #include <vector> 36 using namespace std; 37 38 JSVM_Value TestCreateBigintInt64Case01(JSVM_Env env, JSVM_CallbackInfo info); 39 JSVM_Value TestCreateBigintInt64Case02(JSVM_Env env, JSVM_CallbackInfo info); 40 JSVM_Value TestCreateBigintInt64Case03(JSVM_Env env, JSVM_CallbackInfo info); 41 JSVM_Value TestCreateBigintInt64Case04(JSVM_Env env, JSVM_CallbackInfo info); 42 JSVM_Value TestCreateBigintUint64Case01(JSVM_Env env, JSVM_CallbackInfo info); 43 JSVM_Value TestCreateBigintUint64Case02(JSVM_Env env, JSVM_CallbackInfo info); 44 JSVM_Value TestCreateBigintUint64Case03(JSVM_Env env, JSVM_CallbackInfo info); 45 JSVM_Value TestCreateBigintWordsCase01(JSVM_Env env, JSVM_CallbackInfo info); 46 JSVM_Value TestCreateBigintWordsCase02(JSVM_Env env, JSVM_CallbackInfo info); 47 JSVM_Value TestCreateBigintWordsCase03(JSVM_Env env, JSVM_CallbackInfo info); 48 JSVM_Value TestCreateBigintWordsCase04(JSVM_Env env, JSVM_CallbackInfo info); 49 JSVM_Value TestCreateBigintWordsCase05(JSVM_Env env, JSVM_CallbackInfo info); 50 JSVM_Value TestGetValueBigintInt64Case01(JSVM_Env env, JSVM_CallbackInfo info); 51 JSVM_Value TestGetValueBigintInt64Case02(JSVM_Env env, JSVM_CallbackInfo info); 52 JSVM_Value TestGetValueBigintInt64Case03(JSVM_Env env, JSVM_CallbackInfo info); 53 JSVM_Value TestGetValueBigintInt64Case04(JSVM_Env env, JSVM_CallbackInfo info); 54 JSVM_Value TestGetValueBigintInt64Case05(JSVM_Env env, JSVM_CallbackInfo info); 55 JSVM_Value TestGetValueBigintInt64Case06(JSVM_Env env, JSVM_CallbackInfo info); 56 JSVM_Value TestGetValueBigintUint64Case01(JSVM_Env env, JSVM_CallbackInfo info); 57 JSVM_Value TestGetValueBigintUint64Case02(JSVM_Env env, JSVM_CallbackInfo info); 58 JSVM_Value TestGetValueBigintUint64Case03(JSVM_Env env, JSVM_CallbackInfo info); 59 JSVM_Value TestGetValueBigintUint64Case04(JSVM_Env env, JSVM_CallbackInfo info); 60 JSVM_Value TestGetValueBigintUint64Case05(JSVM_Env env, JSVM_CallbackInfo info); 61 JSVM_Value TestGetValueBigintUint64Case06(JSVM_Env env, JSVM_CallbackInfo info); 62 JSVM_Value TestGetValueBigintWordsCase01(JSVM_Env env, JSVM_CallbackInfo info); 63 JSVM_Value TestGetValueBigintWordsCase02(JSVM_Env env, JSVM_CallbackInfo info); 64 JSVM_Value TestGetValueBigintWordsCase03(JSVM_Env env, JSVM_CallbackInfo info); 65 JSVM_Value TestGetValueBigintWordsCase04(JSVM_Env env, JSVM_CallbackInfo info); 66 JSVM_Value TestGetValueBigintWordsCase05(JSVM_Env env, JSVM_CallbackInfo info); 67 JSVM_Value TestCreateAndGetBigIntProgramCase01(JSVM_Env env, JSVM_CallbackInfo info); 68 JSVM_Value TestCreateAndGetBigIntProgramCase02(JSVM_Env env, JSVM_CallbackInfo info); 69 JSVM_Value TestCreateAndGetBigIntProgramCase03(JSVM_Env env, JSVM_CallbackInfo info); 70 #endif //JSVM_XTS_NAPI_BIGINT_TEST_H 71