File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -164,9 +164,13 @@ TEST_F(AutoWiredTest, need_init_test) {
164
164
TEST_F (AutoWiredTest, function_check_test) {
165
165
auto_wired::AutoWired a;
166
166
167
- EXPECT_THROW (a.Register <G>(auto_wired::AutoWired::RegisterOptions::WithNeedAutoWired ()), std::runtime_error);
168
- EXPECT_THROW (a.Register <G>(auto_wired::AutoWired::RegisterOptions::WithNeedInit ()), std::runtime_error);
169
- EXPECT_THROW (a.Register <G>(auto_wired::AutoWired::RegisterOptions::WithNeedDeInit ()), std::runtime_error);
167
+ try {
168
+ EXPECT_THROW (a.Register <G>(auto_wired::AutoWired::RegisterOptions::WithNeedAutoWired ()), std::runtime_error);
169
+ EXPECT_THROW (a.Register <G>(auto_wired::AutoWired::RegisterOptions::WithNeedInit ()), std::runtime_error);
170
+ EXPECT_THROW (a.Register <G>(auto_wired::AutoWired::RegisterOptions::WithNeedDeInit ()), std::runtime_error);
171
+ } catch (...) {
172
+ EXPECT_TRUE (false );
173
+ }
170
174
}
171
175
172
176
TEST_F (AutoWiredTest, register_index_test) {
You can’t perform that action at this time.
0 commit comments