13 #include "gtest_include.h" 28 const char * argv[2] = {
"foo",
"\0"};
34 void testParam(
unsigned int nparam,
const char ** param_list, std::string
name)
36 for (
unsigned int i = 0; i < nparam; ++i)
39 std::ostringstream oss;
40 oss <<
name <<
"_" << i;
45 params.
set<std::string>(
"_object_name") = oss.str();
46 params.
set<std::string>(
"_type") =
"EBSDMeshGenerator";
49 params.
set<T>(param_list[i]) = T(1.0);
52 params.
set<FileName>(
"filename") =
"DUMMY";
57 auto mesh = std::make_unique<EBSDMeshGenerator>(params);
61 catch (
const std::exception & e)
63 std::string msg(e.what());
65 msg.find(
"Do not specify mesh geometry information, it is read from the EBSD file.") !=
67 <<
"failed with unexpected error: " << msg;
72 std::shared_ptr<MooseApp>
_app;
std::shared_ptr< MooseApp > createMooseApp(const std::string &default_app_type, int argc, char *argv[])
static InputParameters validParams()
void testParam(unsigned int nparam, const char **param_list, std::string name)
std::shared_ptr< MooseApp > _app