Debian Codegraph @

test/unit/required-to-satisfy-test.cpp

raw symbols SCIP
1 /*
2 * %injeqt copyright begin%
3 * Copyright 2014 Rafał Malinowski ([email protected])
4 * %injeqt copyright end%
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 #include "expect.h"cxx . . $ `<file>/test/unit/expect.h`/
22 #include "utils.h"cxx . . $ `<file>/test/unit/utils.h`/
23
24 #include <injeqt/type.h>cxx . . $ `<file>/include/injeqt/type.h`/
25
26 #include "internal/required-to-satisfy.h"cxx . . $ `<file>/src/internal/required-to-satisfy.h`/
27 #include "internal/types-model.h"cxx . . $ `<file>/src/internal/types-model.h`/
28 #include "internal/types.h"cxx . . $ `<file>/src/internal/types.h`/
29
30 #include <QtTest/QtTest>
31
32 using namespace injeqtcxx . . $ injeqt/::internal;
33 using namespace injeqtcxx . . $ injeqt/::v1;
34
35 class type_1cxx . . $ type_1# : public QObjectcxx . . $ QObject#
36 {
37 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
38 };
39
40 class type_1_subtype_1cxx . . $ type_1_subtype_1# : public type_1cxx . . $ type_1#
41 {
42 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
43 };
44
45 class type_2cxx . . $ type_2# : public QObjectcxx . . $ QObject#
46 {
47 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
48
49 public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!:
50 INJEQT_SETcxx . . $ `include/injeqt/injeqt.h:34:11`! void set_type_1cxx . . $ type_2#set_type_1(2eff8f70aeb41f67).(type_1cxx . . $ type_1# *) {}
51 };
52
53 class type_2_subtype_1cxx . . $ type_2_subtype_1# : public type_2cxx . . $ type_2#
54 {
55 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
56 };
57
58 class type_3cxx . . $ type_3# : public QObjectcxx . . $ QObject#
59 {
60 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
61
62 public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!:
63 INJEQT_SETcxx . . $ `include/injeqt/injeqt.h:34:11`! void set_type_2cxx . . $ type_3#set_type_2(710a7ba155b447df).(type_2cxx . . $ type_2# *) {}
64 };
65
66 class type_3_subtype_1cxx . . $ type_3_subtype_1# : public type_3cxx . . $ type_3#
67 {
68 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
69 };
70
71 class cyclic_type_3cxx . . $ cyclic_type_3#;
72
73 class cyclic_type_1cxx . . $ cyclic_type_1# : public QObjectcxx . . $ QObject#
74 {
75 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
76
77 public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!:
78 INJEQT_SETcxx . . $ `include/injeqt/injeqt.h:34:11`! void set_type_3cxx . . $ cyclic_type_1#set_type_3(1d011009ec788a61).(cyclic_type_3cxx . . $ cyclic_type_3# *) {}
79 };
80
81 class cyclic_type_1_subtype_1cxx . . $ cyclic_type_1_subtype_1# : public cyclic_type_1cxx . . $ cyclic_type_1#
82 {
83 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
84 };
85
86 class cyclic_type_2cxx . . $ cyclic_type_2# : public QObjectcxx . . $ QObject#
87 {
88 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
89
90 public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!:
91 INJEQT_SETcxx . . $ `include/injeqt/injeqt.h:34:11`! void set_type_1cxx . . $ cyclic_type_2#set_type_1(e4a4f1b6740c33b).(cyclic_type_1cxx . . $ cyclic_type_1# *) {}
92 };
93
94 class cyclic_type_2_subtype_1cxx . . $ cyclic_type_2_subtype_1# : public cyclic_type_2cxx . . $ cyclic_type_2#
95 {
96 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
97 };
98
99 class cyclic_type_3cxx . . $ cyclic_type_3# : public QObjectcxx . . $ QObject#
100 {
101 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
102
103 public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!:
104 INJEQT_SETcxx . . $ `include/injeqt/injeqt.h:34:11`! void set_type_2cxx . . $ cyclic_type_3#set_type_2(2ab776a9059ef9fd).(cyclic_type_2cxx . . $ cyclic_type_2# *) {}
105 };
106
107 class cyclic_type_3_subtype_1cxx . . $ cyclic_type_3_subtype_1# : public cyclic_type_3cxx . . $ cyclic_type_3#
108 {
109 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
110 };
111
112 class required_to_satisfy_testcxx . . $ required_to_satisfy_test# : public QObjectcxx . . $ QObject#
113 {
114 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
115
116 public:
117 required_to_satisfy_testcxx . . $ required_to_satisfy_test#required_to_satisfy_test(49f6e7a06ebc5aa8).();
118
119 private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!:
120 void should_return_nothing_when_empty_dependenciescxx . . $ required_to_satisfy_test#should_return_nothing_when_empty_dependencies(49f6e7a06ebc5aa8).();
121 void should_return_dependencies_for_simple_model_with_empty_implementationscxx . . $ required_to_satisfy_test#should_return_dependencies_for_simple_model_with_empty_implementations(49f6e7a06ebc5aa8).();
122 void should_return_nothing_for_simple_model_with_full_implementationscxx . . $ required_to_satisfy_test#should_return_nothing_for_simple_model_with_full_implementations(49f6e7a06ebc5aa8).();
123 void should_return_subtype_dependencies_for_inheriting_model_with_empty_implementationscxx . . $ required_to_satisfy_test#should_return_subtype_dependencies_for_inheriting_model_with_empty_implementations(49f6e7a06ebc5aa8).();
124 void should_return_nothing_for_inheriting_model_with_full_implementationscxx . . $ required_to_satisfy_test#should_return_nothing_for_inheriting_model_with_full_implementations(49f6e7a06ebc5aa8).();
125 void should_return_dependencies_for_inheriting_model_with_supertype_implementationscxx . . $ required_to_satisfy_test#should_return_dependencies_for_inheriting_model_with_supertype_implementations(49f6e7a06ebc5aa8).();
126 void should_return_all_dependencies_for_simple_model_with_empty_implementationscxx . . $ required_to_satisfy_test#should_return_all_dependencies_for_simple_model_with_empty_implementations(49f6e7a06ebc5aa8).();
127 void should_return_partial_dependencies_for_simple_model_with_partial_implementationscxx . . $ required_to_satisfy_test#should_return_partial_dependencies_for_simple_model_with_partial_implementations(49f6e7a06ebc5aa8).();
128 void should_return_all_types_with_cyclic_dependnecies_for_simple_model_with_partial_implementationscxx . . $ required_to_satisfy_test#should_return_all_types_with_cyclic_dependnecies_for_simple_model_with_partial_implementations(49f6e7a06ebc5aa8).();
129 void should_return_all_subtypes_with_cyclic_dependnecies_for_inheriting_model_with_partial_implementationscxx . . $ required_to_satisfy_test#should_return_all_subtypes_with_cyclic_dependnecies_for_inheriting_model_with_partial_implementations(49f6e7a06ebc5aa8).();
130 void should_return_type_when_supertype_is_already_availablecxx . . $ required_to_satisfy_test#should_return_type_when_supertype_is_already_available(49f6e7a06ebc5aa8).();
131
132 private:
133 types_by_namecxx . . $ injeqt/internal/types_by_name# known_typescxx . . $ required_to_satisfy_test#known_types.;
134 typecxx . . $ injeqt/v1/type# type_1_typecxx . . $ required_to_satisfy_test#type_1_type.;
135 typecxx . . $ injeqt/v1/type# type_1_subtype_1_typecxx . . $ required_to_satisfy_test#type_1_subtype_1_type.;
136 typecxx . . $ injeqt/v1/type# type_2_typecxx . . $ required_to_satisfy_test#type_2_type.;
137 typecxx . . $ injeqt/v1/type# type_2_subtype_1_typecxx . . $ required_to_satisfy_test#type_2_subtype_1_type.;
138 typecxx . . $ injeqt/v1/type# type_3_typecxx . . $ required_to_satisfy_test#type_3_type.;
139 typecxx . . $ injeqt/v1/type# type_3_subtype_1_typecxx . . $ required_to_satisfy_test#type_3_subtype_1_type.;
140 typecxx . . $ injeqt/v1/type# cyclic_type_1_typecxx . . $ required_to_satisfy_test#cyclic_type_1_type.;
141 typecxx . . $ injeqt/v1/type# cyclic_type_1_subtype_1_typecxx . . $ required_to_satisfy_test#cyclic_type_1_subtype_1_type.;
142 typecxx . . $ injeqt/v1/type# cyclic_type_2_typecxx . . $ required_to_satisfy_test#cyclic_type_2_type.;
143 typecxx . . $ injeqt/v1/type# cyclic_type_2_subtype_1_typecxx . . $ required_to_satisfy_test#cyclic_type_2_subtype_1_type.;
144 typecxx . . $ injeqt/v1/type# cyclic_type_3_typecxx . . $ required_to_satisfy_test#cyclic_type_3_type.;
145 typecxx . . $ injeqt/v1/type# cyclic_type_3_subtype_1_typecxx . . $ required_to_satisfy_test#cyclic_type_3_subtype_1_type.;
146 types_modelcxx . . $ injeqt/internal/types_model# empty_types_modelcxx . . $ required_to_satisfy_test#empty_types_model.;
147 types_modelcxx . . $ injeqt/internal/types_model# simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model.;
148 types_modelcxx . . $ injeqt/internal/types_model# inheriting_types_modelcxx . . $ required_to_satisfy_test#inheriting_types_model.;
149 dependenciescxx . . $ injeqt/internal/dependencies# type_1_dependenciescxx . . $ required_to_satisfy_test#type_1_dependencies.;
150 dependenciescxx . . $ injeqt/internal/dependencies# type_1_subtype_1_dependenciescxx . . $ required_to_satisfy_test#type_1_subtype_1_dependencies.;
151 dependenciescxx . . $ injeqt/internal/dependencies# type_2_dependenciescxx . . $ required_to_satisfy_test#type_2_dependencies.;
152 dependenciescxx . . $ injeqt/internal/dependencies# type_3_dependenciescxx . . $ required_to_satisfy_test#type_3_dependencies.;
153 dependenciescxx . . $ injeqt/internal/dependencies# cyclic_type_1_dependenciescxx . . $ required_to_satisfy_test#cyclic_type_1_dependencies.;
154 dependenciescxx . . $ injeqt/internal/dependencies# cyclic_type_2_dependenciescxx . . $ required_to_satisfy_test#cyclic_type_2_dependencies.;
155 dependenciescxx . . $ injeqt/internal/dependencies# cyclic_type_3_dependenciescxx . . $ required_to_satisfy_test#cyclic_type_3_dependencies.;
156
157 };
158
159 required_to_satisfy_testcxx . . $ required_to_satisfy_test#::required_to_satisfy_testcxx . . $ required_to_satisfy_test#required_to_satisfy_test(49f6e7a06ebc5aa8).() :
160 known_typescxx . . $ required_to_satisfy_test#known_types.{types_by_namecxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(26e8deb829554aa).{stdcxx . . $ std/vector#vector(b1ea180184b47f03).::vectorcxx . . $ std/vector#<typecxx . . $ injeqt/v1/type#>{
161 make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<type_1cxx . . $ type_1#>(),
162 make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<type_1_subtype_1cxx . . $ type_1_subtype_1#>(),
163 make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<type_2cxx . . $ type_2#>(),
164 make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<type_2_subtype_1cxx . . $ type_2_subtype_1#>(),
165 make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<type_3cxx . . $ type_3#>(),
166 make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<type_3_subtype_1cxx . . $ type_3_subtype_1#>(),
167 make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<cyclic_type_1cxx . . $ cyclic_type_1#>(),
168 make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<cyclic_type_1_subtype_1cxx . . $ cyclic_type_1_subtype_1#>(),
169 make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<cyclic_type_2cxx . . $ cyclic_type_2#>(),
170 make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<cyclic_type_2_subtype_1cxx . . $ cyclic_type_2_subtype_1#>(),
171 make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<cyclic_type_3cxx . . $ cyclic_type_3#>(),
172 make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<cyclic_type_3_subtype_1cxx . . $ cyclic_type_3_subtype_1#>()
173 }}},
174 type_1_typecxx . . $ required_to_satisfy_test#type_1_type.{make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<type_1cxx . . $ type_1#>()},
175 type_1_subtype_1_typecxx . . $ required_to_satisfy_test#type_1_subtype_1_type.{make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<type_1_subtype_1cxx . . $ type_1_subtype_1#>()},
176 type_2_typecxx . . $ required_to_satisfy_test#type_2_type.{make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<type_2cxx . . $ type_2#>()},
177 type_2_subtype_1_typecxx . . $ required_to_satisfy_test#type_2_subtype_1_type.{make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<type_2_subtype_1cxx . . $ type_2_subtype_1#>()},
178 type_3_typecxx . . $ required_to_satisfy_test#type_3_type.{make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<type_3cxx . . $ type_3#>()},
179 type_3_subtype_1_typecxx . . $ required_to_satisfy_test#type_3_subtype_1_type.{make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<type_3_subtype_1cxx . . $ type_3_subtype_1#>()},
180 cyclic_type_1_typecxx . . $ required_to_satisfy_test#cyclic_type_1_type.{make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<cyclic_type_1cxx . . $ cyclic_type_1#>()},
181 cyclic_type_1_subtype_1_typecxx . . $ required_to_satisfy_test#cyclic_type_1_subtype_1_type.{make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<cyclic_type_1_subtype_1cxx . . $ cyclic_type_1_subtype_1#>()},
182 cyclic_type_2_typecxx . . $ required_to_satisfy_test#cyclic_type_2_type.{make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<cyclic_type_2cxx . . $ cyclic_type_2#>()},
183 cyclic_type_2_subtype_1_typecxx . . $ required_to_satisfy_test#cyclic_type_2_subtype_1_type.{make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<cyclic_type_2_subtype_1cxx . . $ cyclic_type_2_subtype_1#>()},
184 cyclic_type_3_typecxx . . $ required_to_satisfy_test#cyclic_type_3_type.{make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<cyclic_type_3cxx . . $ cyclic_type_3#>()},
185 cyclic_type_3_subtype_1_typecxx . . $ required_to_satisfy_test#cyclic_type_3_subtype_1_type.{make_typecxx . . $ injeqt/v1/make_type(10a1ed948a80d481).<cyclic_type_3_subtype_1cxx . . $ cyclic_type_3_subtype_1#>()}
186 {
187 auto simple_types = stdcxx . . $ std/vector#vector(b1ea180184b47f03).::vectorcxx . . $ std/vector#<typecxx . . $ injeqt/v1/type#>{
188 type_1_typecxx . . $ required_to_satisfy_test#type_1_type.,
189 type_2_typecxx . . $ required_to_satisfy_test#type_2_type.,
190 type_3_typecxx . . $ required_to_satisfy_test#type_3_type.,
191 cyclic_type_1_typecxx . . $ required_to_satisfy_test#cyclic_type_1_type.,
192 cyclic_type_2_typecxx . . $ required_to_satisfy_test#cyclic_type_2_type.,
193 cyclic_type_3_typecxx . . $ required_to_satisfy_test#cyclic_type_3_type.
194 };
195 auto inheriting_types = stdcxx . . $ std/vector#vector(b1ea180184b47f03).::vectorcxx . . $ std/vector#<typecxx . . $ injeqt/v1/type#>{
196 type_1_subtype_1_typecxx . . $ required_to_satisfy_test#type_1_subtype_1_type.,
197 type_2_subtype_1_typecxx . . $ required_to_satisfy_test#type_2_subtype_1_type.,
198 type_3_subtype_1_typecxx . . $ required_to_satisfy_test#type_3_subtype_1_type.,
199 cyclic_type_1_subtype_1_typecxx . . $ required_to_satisfy_test#cyclic_type_1_subtype_1_type.,
200 cyclic_type_2_subtype_1_typecxx . . $ required_to_satisfy_test#cyclic_type_2_subtype_1_type.,
201 cyclic_type_3_subtype_1_typecxx . . $ required_to_satisfy_test#cyclic_type_3_subtype_1_type.
202 };
203 simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model. =cxx . . $ injeqt/internal/types_model#`operator=`(7aba9e11eb0d6d12). make_types_modelcxx . . $ injeqt/internal/make_types_model(b2f682f82691dfc9).(known_typescxx . . $ required_to_satisfy_test#known_types., simple_types, simple_types);
204 inheriting_types_modelcxx . . $ required_to_satisfy_test#inheriting_types_model. =cxx . . $ injeqt/internal/types_model#`operator=`(7aba9e11eb0d6d12). make_types_modelcxx . . $ injeqt/internal/make_types_model(b2f682f82691dfc9).(known_typescxx . . $ required_to_satisfy_test#known_types., inheriting_types, inheriting_types);
205 type_1_dependenciescxx . . $ required_to_satisfy_test#type_1_dependencies. =cxx . . $ injeqt/internal/sorted_unique_vector#`operator=`(7c784f226b4793c7). simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model..mapped_dependenciescxx . . $ injeqt/internal/types_model#mapped_dependencies(6995930a3bd7d232).().getcxx . . $ injeqt/internal/sorted_unique_vector#get(f1b725e3c61eba).(type_1_typecxx . . $ required_to_satisfy_test#type_1_type.)->cxx . . $ __gnu_cxx/__normal_iterator#`operator->`(a68f0626e749d9f6).dependency_listcxx . . $ injeqt/internal/type_dependencies#dependency_list(2a77aa8e1f54b3e2).();
206 type_1_subtype_1_dependenciescxx . . $ required_to_satisfy_test#type_1_subtype_1_dependencies. =cxx . . $ injeqt/internal/sorted_unique_vector#`operator=`(7c784f226b4793c7). inheriting_types_modelcxx . . $ required_to_satisfy_test#inheriting_types_model..mapped_dependenciescxx . . $ injeqt/internal/types_model#mapped_dependencies(6995930a3bd7d232).().getcxx . . $ injeqt/internal/sorted_unique_vector#get(f1b725e3c61eba).(type_1_subtype_1_typecxx . . $ required_to_satisfy_test#type_1_subtype_1_type.)->cxx . . $ __gnu_cxx/__normal_iterator#`operator->`(a68f0626e749d9f6).dependency_listcxx . . $ injeqt/internal/type_dependencies#dependency_list(2a77aa8e1f54b3e2).();
207 type_2_dependenciescxx . . $ required_to_satisfy_test#type_2_dependencies. =cxx . . $ injeqt/internal/sorted_unique_vector#`operator=`(7c784f226b4793c7). simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model..mapped_dependenciescxx . . $ injeqt/internal/types_model#mapped_dependencies(6995930a3bd7d232).().getcxx . . $ injeqt/internal/sorted_unique_vector#get(f1b725e3c61eba).(type_2_typecxx . . $ required_to_satisfy_test#type_2_type.)->cxx . . $ __gnu_cxx/__normal_iterator#`operator->`(a68f0626e749d9f6).dependency_listcxx . . $ injeqt/internal/type_dependencies#dependency_list(2a77aa8e1f54b3e2).();
208 type_3_dependenciescxx . . $ required_to_satisfy_test#type_3_dependencies. =cxx . . $ injeqt/internal/sorted_unique_vector#`operator=`(7c784f226b4793c7). simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model..mapped_dependenciescxx . . $ injeqt/internal/types_model#mapped_dependencies(6995930a3bd7d232).().getcxx . . $ injeqt/internal/sorted_unique_vector#get(f1b725e3c61eba).(type_3_typecxx . . $ required_to_satisfy_test#type_3_type.)->cxx . . $ __gnu_cxx/__normal_iterator#`operator->`(a68f0626e749d9f6).dependency_listcxx . . $ injeqt/internal/type_dependencies#dependency_list(2a77aa8e1f54b3e2).();
209 cyclic_type_1_dependenciescxx . . $ required_to_satisfy_test#cyclic_type_1_dependencies. =cxx . . $ injeqt/internal/sorted_unique_vector#`operator=`(7c784f226b4793c7). simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model..mapped_dependenciescxx . . $ injeqt/internal/types_model#mapped_dependencies(6995930a3bd7d232).().getcxx . . $ injeqt/internal/sorted_unique_vector#get(f1b725e3c61eba).(cyclic_type_1_typecxx . . $ required_to_satisfy_test#cyclic_type_1_type.)->cxx . . $ __gnu_cxx/__normal_iterator#`operator->`(a68f0626e749d9f6).dependency_listcxx . . $ injeqt/internal/type_dependencies#dependency_list(2a77aa8e1f54b3e2).();
210 cyclic_type_2_dependenciescxx . . $ required_to_satisfy_test#cyclic_type_2_dependencies. =cxx . . $ injeqt/internal/sorted_unique_vector#`operator=`(7c784f226b4793c7). simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model..mapped_dependenciescxx . . $ injeqt/internal/types_model#mapped_dependencies(6995930a3bd7d232).().getcxx . . $ injeqt/internal/sorted_unique_vector#get(f1b725e3c61eba).(cyclic_type_2_typecxx . . $ required_to_satisfy_test#cyclic_type_2_type.)->cxx . . $ __gnu_cxx/__normal_iterator#`operator->`(a68f0626e749d9f6).dependency_listcxx . . $ injeqt/internal/type_dependencies#dependency_list(2a77aa8e1f54b3e2).();
211 cyclic_type_3_dependenciescxx . . $ required_to_satisfy_test#cyclic_type_3_dependencies. =cxx . . $ injeqt/internal/sorted_unique_vector#`operator=`(7c784f226b4793c7). simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model..mapped_dependenciescxx . . $ injeqt/internal/types_model#mapped_dependencies(6995930a3bd7d232).().getcxx . . $ injeqt/internal/sorted_unique_vector#get(f1b725e3c61eba).(cyclic_type_3_typecxx . . $ required_to_satisfy_test#cyclic_type_3_type.)->cxx . . $ __gnu_cxx/__normal_iterator#`operator->`(a68f0626e749d9f6).dependency_listcxx . . $ injeqt/internal/type_dependencies#dependency_list(2a77aa8e1f54b3e2).();
212 }
213
214 void required_to_satisfy_testcxx . . $ required_to_satisfy_test#::should_return_nothing_when_empty_dependenciescxx . . $ required_to_satisfy_test#should_return_nothing_when_empty_dependencies(49f6e7a06ebc5aa8).()
215 {
216 auto result = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(dependenciescxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(49f6e7a06ebc5aa8).{}, simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model., {cxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(49f6e7a06ebc5aa8).});
217 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result, types{});
218 }
219
220 void required_to_satisfy_testcxx . . $ required_to_satisfy_test#::should_return_dependencies_for_simple_model_with_empty_implementationscxx . . $ required_to_satisfy_test#should_return_dependencies_for_simple_model_with_empty_implementations(49f6e7a06ebc5aa8).()
221 {
222 auto result = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(type_2_dependenciescxx . . $ required_to_satisfy_test#type_2_dependencies., simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model., {cxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(49f6e7a06ebc5aa8).});
223 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result, (types{type_1_type}));
224 }
225
226 void required_to_satisfy_testcxx . . $ required_to_satisfy_test#::should_return_nothing_for_simple_model_with_full_implementationscxx . . $ required_to_satisfy_test#should_return_nothing_for_simple_model_with_full_implementations(49f6e7a06ebc5aa8).()
227 {
228 auto type_1_object = make_objectcxx . . $ std/unique_ptr#unique_ptr(d6762fce684538e4).<type_1cxx . . $ type_1#>();
229 auto available_implementations = implementationscxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(27fd641105185d40).
230 {
231 implementationcxx . . $ injeqt/internal/implementation#implementation(9ea1470f0de69db5).{type_1_typecxx . . $ required_to_satisfy_test#type_1_type., type_1_object.getcxx . . $ std/unique_ptr#get(ca399b2b6292c808).()}
232 };
233 auto result = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(type_2_dependenciescxx . . $ required_to_satisfy_test#type_2_dependencies., simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model., available_implementations);
234 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result, (types{}));
235 }
236
237 void required_to_satisfy_testcxx . . $ required_to_satisfy_test#::should_return_subtype_dependencies_for_inheriting_model_with_empty_implementationscxx . . $ required_to_satisfy_test#should_return_subtype_dependencies_for_inheriting_model_with_empty_implementations(49f6e7a06ebc5aa8).()
238 {
239 auto result = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(type_2_dependenciescxx . . $ required_to_satisfy_test#type_2_dependencies., inheriting_types_modelcxx . . $ required_to_satisfy_test#inheriting_types_model., {cxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(49f6e7a06ebc5aa8).});
240 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result, (types{type_1_subtype_1_type}));
241 }
242
243 void required_to_satisfy_testcxx . . $ required_to_satisfy_test#::should_return_nothing_for_inheriting_model_with_full_implementationscxx . . $ required_to_satisfy_test#should_return_nothing_for_inheriting_model_with_full_implementations(49f6e7a06ebc5aa8).()
244 {
245 auto type_1_subtype_1_object = make_objectcxx . . $ std/unique_ptr#unique_ptr(d6762fce684538e4).<type_1_subtype_1cxx . . $ type_1_subtype_1#>();
246 auto available_implementations = implementationscxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(27fd641105185d40).
247 {
248 implementationcxx . . $ injeqt/internal/implementation#implementation(9ea1470f0de69db5).{type_1_subtype_1_typecxx . . $ required_to_satisfy_test#type_1_subtype_1_type., type_1_subtype_1_object.getcxx . . $ std/unique_ptr#get(ca399b2b6292c808).()}
249 };
250 auto result = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(type_2_dependenciescxx . . $ required_to_satisfy_test#type_2_dependencies., inheriting_types_modelcxx . . $ required_to_satisfy_test#inheriting_types_model., available_implementations);
251 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result, (types{}));
252 }
253
254 void required_to_satisfy_testcxx . . $ required_to_satisfy_test#::should_return_dependencies_for_inheriting_model_with_supertype_implementationscxx . . $ required_to_satisfy_test#should_return_dependencies_for_inheriting_model_with_supertype_implementations(49f6e7a06ebc5aa8).()
255 {
256 auto type_1_object = make_objectcxx . . $ std/unique_ptr#unique_ptr(d6762fce684538e4).<type_1cxx . . $ type_1#>();
257 auto available_implementations = implementationscxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(27fd641105185d40).
258 {
259 implementationcxx . . $ injeqt/internal/implementation#implementation(9ea1470f0de69db5).{type_1_typecxx . . $ required_to_satisfy_test#type_1_type., type_1_object.getcxx . . $ std/unique_ptr#get(ca399b2b6292c808).()}
260 };
261 auto result = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(type_2_dependenciescxx . . $ required_to_satisfy_test#type_2_dependencies., inheriting_types_modelcxx . . $ required_to_satisfy_test#inheriting_types_model., available_implementations);
262 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result, (types{type_1_subtype_1_type}));
263 }
264
265 void required_to_satisfy_testcxx . . $ required_to_satisfy_test#::should_return_all_dependencies_for_simple_model_with_empty_implementationscxx . . $ required_to_satisfy_test#should_return_all_dependencies_for_simple_model_with_empty_implementations(49f6e7a06ebc5aa8).()
266 {
267 auto result = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(type_3_dependenciescxx . . $ required_to_satisfy_test#type_3_dependencies., simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model., {cxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(49f6e7a06ebc5aa8).});
268 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result, (types{type_1_type, type_2_type}));
269 }
270
271 void required_to_satisfy_testcxx . . $ required_to_satisfy_test#::should_return_partial_dependencies_for_simple_model_with_partial_implementationscxx . . $ required_to_satisfy_test#should_return_partial_dependencies_for_simple_model_with_partial_implementations(49f6e7a06ebc5aa8).()
272 {
273 auto type_1_object = make_objectcxx . . $ std/unique_ptr#unique_ptr(d6762fce684538e4).<type_1cxx . . $ type_1#>();
274 auto available_implementations = implementationscxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(27fd641105185d40).
275 {
276 implementationcxx . . $ injeqt/internal/implementation#implementation(9ea1470f0de69db5).{type_1_typecxx . . $ required_to_satisfy_test#type_1_type., type_1_object.getcxx . . $ std/unique_ptr#get(ca399b2b6292c808).()}
277 };
278
279 auto result = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(type_3_dependenciescxx . . $ required_to_satisfy_test#type_3_dependencies., simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model., available_implementations);
280 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result, (types{type_2_type}));
281 }
282
283 void required_to_satisfy_testcxx . . $ required_to_satisfy_test#::should_return_all_types_with_cyclic_dependnecies_for_simple_model_with_partial_implementationscxx . . $ required_to_satisfy_test#should_return_all_types_with_cyclic_dependnecies_for_simple_model_with_partial_implementations(49f6e7a06ebc5aa8).()
284 {
285 auto result1 = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(cyclic_type_1_dependenciescxx . . $ required_to_satisfy_test#cyclic_type_1_dependencies., simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model., {cxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(49f6e7a06ebc5aa8).});
286 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result1, (types{cyclic_type_1_type, cyclic_type_2_type, cyclic_type_3_type}));
287
288 auto result2 = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(cyclic_type_2_dependenciescxx . . $ required_to_satisfy_test#cyclic_type_2_dependencies., simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model., {cxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(49f6e7a06ebc5aa8).});
289 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result2, (types{cyclic_type_1_type, cyclic_type_2_type, cyclic_type_3_type}));
290
291 auto result3 = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(cyclic_type_3_dependenciescxx . . $ required_to_satisfy_test#cyclic_type_3_dependencies., simple_types_modelcxx . . $ required_to_satisfy_test#simple_types_model., {cxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(49f6e7a06ebc5aa8).});
292 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result3, (types{cyclic_type_1_type, cyclic_type_2_type, cyclic_type_3_type}));
293 }
294
295 void required_to_satisfy_testcxx . . $ required_to_satisfy_test#::should_return_all_subtypes_with_cyclic_dependnecies_for_inheriting_model_with_partial_implementationscxx . . $ required_to_satisfy_test#should_return_all_subtypes_with_cyclic_dependnecies_for_inheriting_model_with_partial_implementations(49f6e7a06ebc5aa8).()
296 {
297 auto result1 = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(cyclic_type_1_dependenciescxx . . $ required_to_satisfy_test#cyclic_type_1_dependencies., inheriting_types_modelcxx . . $ required_to_satisfy_test#inheriting_types_model., {cxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(49f6e7a06ebc5aa8).});
298 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result1, (types{cyclic_type_1_subtype_1_type, cyclic_type_2_subtype_1_type, cyclic_type_3_subtype_1_type}));
299
300 auto result2 = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(cyclic_type_2_dependenciescxx . . $ required_to_satisfy_test#cyclic_type_2_dependencies., inheriting_types_modelcxx . . $ required_to_satisfy_test#inheriting_types_model., {cxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(49f6e7a06ebc5aa8).});
301 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result2, (types{cyclic_type_1_subtype_1_type, cyclic_type_2_subtype_1_type, cyclic_type_3_subtype_1_type}));
302
303 auto result3 = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(cyclic_type_3_dependenciescxx . . $ required_to_satisfy_test#cyclic_type_3_dependencies., inheriting_types_modelcxx . . $ required_to_satisfy_test#inheriting_types_model., {cxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(49f6e7a06ebc5aa8).});
304 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result3, (types{cyclic_type_1_subtype_1_type, cyclic_type_2_subtype_1_type, cyclic_type_3_subtype_1_type}));
305 }
306
307 void required_to_satisfy_testcxx . . $ required_to_satisfy_test#::should_return_type_when_supertype_is_already_availablecxx . . $ required_to_satisfy_test#should_return_type_when_supertype_is_already_available(49f6e7a06ebc5aa8).()
308 {
309 auto type_1_object = make_objectcxx . . $ std/unique_ptr#unique_ptr(d6762fce684538e4).<type_1cxx . . $ type_1#>();
310 auto available_implementations = implementationscxx . . $ injeqt/internal/sorted_unique_vector#sorted_unique_vector(27fd641105185d40).
311 {
312 implementationcxx . . $ injeqt/internal/implementation#implementation(9ea1470f0de69db5).{type_1_typecxx . . $ required_to_satisfy_test#type_1_type., type_1_object.getcxx . . $ std/unique_ptr#get(ca399b2b6292c808).()},
313 };
314
315 auto result = required_to_satisfycxx . . $ injeqt/internal/required_to_satisfy(4c5f2d4bccbaabd5).(type_1_subtype_1_dependenciescxx . . $ required_to_satisfy_test#type_1_subtype_1_dependencies., inheriting_types_modelcxx . . $ required_to_satisfy_test#inheriting_types_model., available_implementations);
316 QCOMPAREcxx . . $ `<external>/8602788698586413231/qtestcase.h:86:9`!(result, (types{}));
317 }
318
319 QTEST_APPLESS_MAINcxx . . $ `<external>/4204159469433502174/qtest.h:442:9`!(required_to_satisfy_test);
320
321 #include "required-to-satisfy-test.moc"cxx . . $ `<file>/build/test/required-to-satisfy-test_autogen/include/required-to-satisfy-test.moc`/