1 /*
2 * Copyright (c) 2024-2025 Huawei Device 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 // Autogenerated file by gen_null_arg_tests.rb script -- DO NOT EDIT!
17
18 #include "libabckit/include/c/abckit.h"
19 #include "libabckit/include/c/metadata_core.h"
20 #include "libabckit/include/c/extensions/arkts/metadata_arkts.h"
21 #include "libabckit/include/c/extensions/js/metadata_js.h"
22 #include "libabckit/include/c/ir_core.h"
23 #include "libabckit/include/c/isa/isa_dynamic.h"
24 #include "libabckit/include/c/isa/isa_static.h"
25
26 #include "helpers/helpers.h"
27 #include "helpers/helpers_nullptr.h"
28
29 #include <gtest/gtest.h>
30
31 namespace libabckit::test {
32
33 static auto g_jsInspectApiImp = AbckitGetJsInspectApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
34
35 class LibAbcKitNullptrTestsJsInspectApiImpl0 : public ::testing::Test {};
36
37 // Test: test-kind=api, api=JsInspectApiImpl::coreClassToJsClass,
38 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0,coreClassToJsClass)39 TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0, coreClassToJsClass)
40 {
41 helpers_nullptr::TestNullptr(g_jsInspectApiImp->coreClassToJsClass);
42 }
43
44 // Test: test-kind=api, api=JsInspectApiImpl::coreExportDescriptorToJsExportDescriptor,
45 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0,coreExportDescriptorToJsExportDescriptor)46 TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0, coreExportDescriptorToJsExportDescriptor)
47 {
48 helpers_nullptr::TestNullptr(g_jsInspectApiImp->coreExportDescriptorToJsExportDescriptor);
49 }
50
51 // Test: test-kind=api, api=JsInspectApiImpl::coreFunctionToJsFunction,
52 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0,coreFunctionToJsFunction)53 TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0, coreFunctionToJsFunction)
54 {
55 helpers_nullptr::TestNullptr(g_jsInspectApiImp->coreFunctionToJsFunction);
56 }
57
58 // Test: test-kind=api, api=JsInspectApiImpl::coreImportDescriptorToJsImportDescriptor,
59 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0,coreImportDescriptorToJsImportDescriptor)60 TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0, coreImportDescriptorToJsImportDescriptor)
61 {
62 helpers_nullptr::TestNullptr(g_jsInspectApiImp->coreImportDescriptorToJsImportDescriptor);
63 }
64
65 // Test: test-kind=api, api=JsInspectApiImpl::coreModuleToJsModule,
66 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0,coreModuleToJsModule)67 TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0, coreModuleToJsModule)
68 {
69 helpers_nullptr::TestNullptr(g_jsInspectApiImp->coreModuleToJsModule);
70 }
71
72 // Test: test-kind=api, api=JsInspectApiImpl::jsClassToCoreClass,
73 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0,jsClassToCoreClass)74 TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0, jsClassToCoreClass)
75 {
76 helpers_nullptr::TestNullptr(g_jsInspectApiImp->jsClassToCoreClass);
77 }
78
79 // Test: test-kind=api, api=JsInspectApiImpl::jsExportDescriptorToCoreExportDescriptor,
80 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0,jsExportDescriptorToCoreExportDescriptor)81 TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0, jsExportDescriptorToCoreExportDescriptor)
82 {
83 helpers_nullptr::TestNullptr(g_jsInspectApiImp->jsExportDescriptorToCoreExportDescriptor);
84 }
85
86 // Test: test-kind=api, api=JsInspectApiImpl::jsFunctionToCoreFunction,
87 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0,jsFunctionToCoreFunction)88 TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0, jsFunctionToCoreFunction)
89 {
90 helpers_nullptr::TestNullptr(g_jsInspectApiImp->jsFunctionToCoreFunction);
91 }
92
93 // Test: test-kind=api, api=JsInspectApiImpl::jsImportDescriptorToCoreImportDescriptor,
94 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0,jsImportDescriptorToCoreImportDescriptor)95 TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0, jsImportDescriptorToCoreImportDescriptor)
96 {
97 helpers_nullptr::TestNullptr(g_jsInspectApiImp->jsImportDescriptorToCoreImportDescriptor);
98 }
99
100 // Test: test-kind=api, api=JsInspectApiImpl::jsModuleToCoreModule,
101 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0,jsModuleToCoreModule)102 TEST_F(LibAbcKitNullptrTestsJsInspectApiImpl0, jsModuleToCoreModule)
103 {
104 helpers_nullptr::TestNullptr(g_jsInspectApiImp->jsModuleToCoreModule);
105 }
106
107 } // namespace libabckit::test
108