• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 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 wrong_ctx_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 
24 #include "helpers/helpers.h"
25 #include "helpers/helpers_wrong_ctx.h"
26 
27 #include <gtest/gtest.h>
28 
29 namespace libabckit::test {
30 
31 static auto g_graphApiImp = AbckitGetGraphApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
32 
33 class LibAbcKitWrongCtxTestsGraphApiImpl0 : public ::testing::Test {};
34 
35 // Test: test-kind=api, api=GraphApiImpl::iSetFunction,
36 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0,iSetFunction)37 TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0, iSetFunction)
38 {
39     helpers_wrong_ctx::TestWrongCtx(g_graphApiImp->iSetFunction);
40 }
41 
42 // Test: test-kind=api, api=GraphApiImpl::bbAddInstBack,
43 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0,bbAddInstBack)44 TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0, bbAddInstBack)
45 {
46     helpers_wrong_ctx::TestWrongCtx(g_graphApiImp->bbAddInstBack);
47 }
48 
49 // Test: test-kind=api, api=GraphApiImpl::iInsertBefore,
50 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0,iInsertBefore)51 TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0, iInsertBefore)
52 {
53     helpers_wrong_ctx::TestWrongCtx(g_graphApiImp->iInsertBefore);
54 }
55 
56 // Test: test-kind=api, api=GraphApiImpl::bbAddInstFront,
57 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0,bbAddInstFront)58 TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0, bbAddInstFront)
59 {
60     helpers_wrong_ctx::TestWrongCtx(g_graphApiImp->bbAddInstFront);
61 }
62 
63 // Test: test-kind=api, api=GraphApiImpl::bbInsertSuccBlock,
64 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0,bbInsertSuccBlock)65 TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0, bbInsertSuccBlock)
66 {
67     helpers_wrong_ctx::TestWrongCtx(g_graphApiImp->bbInsertSuccBlock);
68 }
69 
70 // Test: test-kind=api, api=GraphApiImpl::bbCheckDominance,
71 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0,bbCheckDominance)72 TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0, bbCheckDominance)
73 {
74     helpers_wrong_ctx::TestWrongCtx(g_graphApiImp->bbCheckDominance);
75 }
76 
77 // Test: test-kind=api, api=GraphApiImpl::iCheckDominance,
78 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0,iCheckDominance)79 TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0, iCheckDominance)
80 {
81     helpers_wrong_ctx::TestWrongCtx(g_graphApiImp->iCheckDominance);
82 }
83 
84 // Test: test-kind=api, api=GraphApiImpl::iAppendInput,
85 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0,iAppendInput)86 TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0, iAppendInput)
87 {
88     helpers_wrong_ctx::TestWrongCtx(g_graphApiImp->iAppendInput);
89 }
90 
91 // Test: test-kind=api, api=GraphApiImpl::iInsertAfter,
92 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0,iInsertAfter)93 TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0, iInsertAfter)
94 {
95     helpers_wrong_ctx::TestWrongCtx(g_graphApiImp->iInsertAfter);
96 }
97 
98 // Test: test-kind=api, api=GraphApiImpl::bbAppendSuccBlock,
99 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0,bbAppendSuccBlock)100 TEST_F(LibAbcKitWrongCtxTestsGraphApiImpl0, bbAppendSuccBlock)
101 {
102     helpers_wrong_ctx::TestWrongCtx(g_graphApiImp->bbAppendSuccBlock);
103 }
104 
105 }  // namespace libabckit::test
106