本文整理汇总了C++中ASSERT_NO_THROW函数的典型用法代码示例。如果您正苦于以下问题:C++ ASSERT_NO_THROW函数的具体用法?C++ ASSERT_NO_THROW怎么用?C++ ASSERT_NO_THROW使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ASSERT_NO_THROW函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: TEST_F
TEST_F(TestIndicesFromValues, search_nonexisting) { ASSERT_NO_THROW(this->search_nonexisting()); }
开发者ID:david-cazier,项目名称:sofa,代码行数:1,代码来源:IndicesFromValues_test.cpp
示例2: TEST
TEST(Graph, can_add_edge_to_graph){
Graph<int> g(5,10);
ASSERT_NO_THROW(g.addEdge(1, 2, 3));
}
开发者ID:AleksandrLykov,项目名称:d-kycha,代码行数:4,代码来源:test_graph.cpp
示例3: TYPED_TEST
TYPED_TEST(TestIndexValueMapper, change_indice_value)
{
ASSERT_NO_THROW(this->change_indice_value());
}
开发者ID:FabienPean,项目名称:sofa,代码行数:4,代码来源:IndexValueMapper_test.cpp
示例4: TEST
TEST(PRIORITY_QUEUE, can_create_queue){
PRIORITY_QUEUE<int>* a;
ASSERT_NO_THROW(a = new PRIORITY_QUEUE<int>(2));
}
开发者ID:AleksandrLykov,项目名称:lab4,代码行数:5,代码来源:test_priority_queue.cpp
示例5: TEST
TEST(Table, can_copy_Scan_table_to_Sort_table)
{
ScanTable<int>*a = new ScanTable<int>(5);
ASSERT_NO_THROW(Sort_table<int>*b = new Sort_table<int>(*a));
}
开发者ID:alesya-kuptsova,项目名称:mp2-lab4-graph,代码行数:5,代码来源:test_table.cpp
示例6: TEST_F
TEST_F(TokensTest, MakeFromPrimThatNeedsNoValue_NoValue_ExhaustivePass)
{
ASSERT_NO_THROW( Token{ PrimativeToken::EndOfFile } );
ASSERT_NO_THROW( Token{ PrimativeToken::LParen } );
ASSERT_NO_THROW( Token{ PrimativeToken::RParen } );
ASSERT_NO_THROW( Token{ PrimativeToken::Plus } );
ASSERT_NO_THROW( Token{ PrimativeToken::Minus } );
ASSERT_NO_THROW( Token{ PrimativeToken::Times } );
ASSERT_NO_THROW( Token{ PrimativeToken::Equal } );
ASSERT_NO_THROW( Token{ PrimativeToken::Assign } );
ASSERT_NO_THROW( Token{ PrimativeToken::If } );
ASSERT_NO_THROW( Token{ PrimativeToken::Then } );
ASSERT_NO_THROW( Token{ PrimativeToken::Else } );
ASSERT_NO_THROW( Token{ PrimativeToken::While } );
}
开发者ID:hcwndbyw,项目名称:TigerCompiler_Cpp,代码行数:15,代码来源:TokensTest.cpp
示例7: TEST_F
TEST_F( LoadScene_test,PatchTestConstraint)
{
ASSERT_TRUE(this->LoadScene("PatchTestConstraint.scn"));
ASSERT_TRUE(this->initScene("PatchTestConstraint.scn"));
ASSERT_NO_THROW(this->initScene("PatchTestConstraint.scn"));
}
开发者ID:ejeanvoi,项目名称:sofa-kernel-cleaned,代码行数:6,代码来源:LoadScene_test.cpp
示例8: TEST_F
TEST_F(ConfigTests, test_bad_config_update) {
std::string bad_json = "{\"options\": {},}";
ASSERT_NO_THROW(Config::getInstance().update({{"bad_source", bad_json}}));
}
开发者ID:mgoffin,项目名称:osquery,代码行数:4,代码来源:config_tests.cpp
示例9: TEST_F
TEST_F(lagi_option, get_existing_option) {
agi::Options opt(conf_ok, default_opt, agi::Options::FLUSH_SKIP);
ASSERT_NO_THROW(opt.Get("Valid"));
ASSERT_NO_THROW(opt.Get("Valid")->GetString());
EXPECT_STREQ("This is valid", opt.Get("Valid")->GetString().c_str());
}
开发者ID:seawaveT,项目名称:Aegisub,代码行数:6,代码来源:option.cpp
示例10: TEST
TEST(ApplicationCWrapper, RunDoesNotFailWithNullPtr)
{
ASSERT_NO_THROW(lac_apprun(nullptr));
}
开发者ID:drmonkeysee,项目名称:Laconomie-FirstDraft,代码行数:4,代码来源:application_cwrapper_tests.cpp
示例11: TEST
TEST(builder_test, empty_uri_doesnt_throw) {
network::uri_builder builder;
ASSERT_NO_THROW(builder.uri());
}
开发者ID:maeikei,项目名称:uri,代码行数:4,代码来源:uri_builder_test.cpp
示例12: TEST
TEST(TParser, can_create_parser)
{
char st[6] = { '2', '+', '5', '*', '2', '\0' };
ASSERT_NO_THROW(TParser parser(st));
}
开发者ID:nik709,项目名称:Stack,代码行数:5,代码来源:Test_parser.cpp
注:本文中的ASSERT_NO_THROW函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论