test_list_test.cpp 721 B

123456789101112131415161718
  1. #include <iostream>
  2. #include <string>
  3. int main(int argc, char** argv)
  4. {
  5. // Note: GoogleTest.cmake doesn't actually depend on Google Test as such;
  6. // it only requires that we produces output in the expected format when
  7. // invoked with --gtest_list_tests. Thus, we fake that here. This allows us
  8. // to test the module without actually needing Google Test.
  9. if (argc > 1 && std::string(argv[1]) == "--gtest_list_tests") {
  10. std::cout << "test_list_test/test.\n";
  11. std::cout << " case/0 # GetParam() = \"semicolon;\"\n";
  12. std::cout << " case/1 # GetParam() = 'osb['\n";
  13. std::cout << " case/2 # GetParam() = 'csb]'\n";
  14. std::cout << " case/3 # GetParam() = 'S p a c e s'\n";
  15. }
  16. return 0;
  17. }