diff --git a/src/test/unit/services/pathfinder/normal_glm_test.cpp b/src/test/unit/services/pathfinder/normal_glm_test.cpp index 7cbc252776..dba87e7e6a 100644 --- a/src/test/unit/services/pathfinder/normal_glm_test.cpp +++ b/src/test/unit/services/pathfinder/normal_glm_test.cpp @@ -92,7 +92,7 @@ TEST_F(ServicesPathfinderGLM, single) { init_alpha, tol_obj, tol_rel_obj, tol_grad, tol_rel_grad, tol_param, num_iterations, num_elbo_draws, num_draws, save_iterations, refresh, callback, logger, init, parameter, diagnostics); - ASSERT_EQ(rc, 0); + ASSERT_EQ(rc, 0); Eigen::IOFormat CommaInitFmt(Eigen::StreamPrecision, 0, ", ", ", ", "\n", "", "", ""); Eigen::MatrixXd param_vals = parameter.get_eigen_state_values(); @@ -151,7 +151,6 @@ TEST_F(ServicesPathfinderGLM, single_noreturnlp) { std::unique_ptr string_ostream(new std::stringstream{}); stan::test::test_logger logger(std::move(string_ostream)); - std::vector> input_iters; int rc = stan::services::pathfinder::pathfinder_lbfgs_single( @@ -205,7 +204,8 @@ TEST_F(ServicesPathfinderGLM, multi) { using init_context_t = decltype(init_init_context()); std::vector> single_path_inits; for (int i = 0; i < num_paths; ++i) { - single_path_inits.emplace_back(std::make_unique(init_init_context())); + single_path_inits.emplace_back( + std::make_unique(init_init_context())); } stan::test::mock_callback callback; int rc = stan::services::pathfinder::pathfinder_lbfgs_multi( diff --git a/src/test/unit/services/pathfinder/util.hpp b/src/test/unit/services/pathfinder/util.hpp index be48a2c731..5aa08c8ed2 100644 --- a/src/test/unit/services/pathfinder/util.hpp +++ b/src/test/unit/services/pathfinder/util.hpp @@ -19,7 +19,6 @@ struct mock_callback : public stan::callbacks::interrupt { template class test_logger : public stan::callbacks::logger { - public: std::unique_ptr log_; test_logger(std::unique_ptr&& x) : log_(std::move(x)) {}