File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -251,3 +251,29 @@ snippet sr "std::ranges::"
251251# STL std::views::
252252snippet sv " std::views::"
253253 std::views::
254+ # #
255+ # # Tests
256+ # GTest:add main
257+ snippet gtemain " GTest:add main"
258+ int main(int argc, char **argv) {
259+ testing::InitGoogleTest(&argc, argv);
260+ return RUN_ALL_TESTS();
261+ }
262+ # GTest:add test
263+ snippet gtetest " GTest:add test"
264+ TEST(${1: SuiteName } , ${2: TestName } ) {
265+ ${0}
266+ }
267+ # GTest:add fixture
268+ snippet gtefix " GTest:add fixture"
269+ TEST_F(${1: SuiteName } , ${2: TestName } ) {
270+ ${0}
271+ }
272+ # GTest:add parameterized test
273+ snippet gtepar " GTest:add parameterized test"
274+ TEST_P(${1: SuiteName } , ${2: TestName } ) {
275+ ${0}
276+ }
277+ # GTest:instantiate parameterized test
278+ snippet gteparins " GTest:instantiate parameterized test"
279+ INSTANTIATE_TEST_SUITE_P(${1: InstantiationName } , ${2: SuiteName } , ${0} );
You can’t perform that action at this time.
0 commit comments