cmd_test.cpp
Go to the documentation of this file.
1 // test command
2 // Author: Max Schwarz <max.schwarz@ais.uni-bonn.de>
3 
4 #include "doctest.h"
5 
6 #include <vector>
7 #include <string>
8 
9 int test(const std::vector<std::string>& options)
10 {
11  doctest::Context context;
12 
13  std::vector<const char*> values;
14  values.push_back("dummy");
15  for(auto& str : options)
16  values.push_back(str.c_str());
17 
18  context.applyCommandLine(values.size(), values.data());
19 
20  return context.run();
21 }
test
int test(const std::vector< std::string > &options)
Definition: cmd_test.cpp:9
doctest::Context::applyCommandLine
void applyCommandLine(int argc, const char *const *argv)
values
std::vector< double > values
doctest.h
doctest::Context::run
int run()
doctest::Context
Definition: doctest.h:1922


rosbag_fancy
Author(s):
autogenerated on Tue Feb 20 2024 03:20:59