mirror of https://github.com/CLIUtils/CLI11.git
parent
a1ef417b8d
commit
7432ab264d
|
@ -1,3 +1,9 @@
|
|||
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
|
||||
// under NSF AWARD 1414736 and by the respective contributors.
|
||||
// All rights reserved.
|
||||
//
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
#include "app_helper.hpp"
|
||||
#include <boost/container/flat_map.hpp>
|
||||
#include <boost/container/flat_set.hpp>
|
||||
|
@ -11,13 +17,14 @@
|
|||
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
using namespace boost::container;
|
||||
namespace boost {
|
||||
namespace container {
|
||||
|
||||
template <class T> class TApp_container_single_boost : public TApp {
|
||||
public:
|
||||
using container_type = T;
|
||||
container_type cval{};
|
||||
TApp_container_single_boost() : TApp(){};
|
||||
TApp_container_single_boost() : TApp() {}
|
||||
};
|
||||
|
||||
using containerTypes_single_boost =
|
||||
|
@ -47,7 +54,7 @@ template <class T> class TApp_container_pair_boost : public TApp {
|
|||
public:
|
||||
using container_type = T;
|
||||
container_type cval{};
|
||||
TApp_container_pair_boost() : TApp(){};
|
||||
TApp_container_pair_boost() : TApp() {}
|
||||
};
|
||||
|
||||
using isp = std::pair<int, std::string>;
|
||||
|
@ -75,7 +82,7 @@ template <class T> class TApp_container_tuple_boost : public TApp {
|
|||
public:
|
||||
using container_type = T;
|
||||
container_type cval{};
|
||||
TApp_container_tuple_boost() : TApp(){};
|
||||
TApp_container_tuple_boost() : TApp() {}
|
||||
};
|
||||
|
||||
using tup_obj = std::tuple<int, std::string, double>;
|
||||
|
@ -119,7 +126,7 @@ template <class T> class TApp_container_container_boost : public TApp {
|
|||
public:
|
||||
using container_type = T;
|
||||
container_type cval{};
|
||||
TApp_container_container_boost() : TApp(){};
|
||||
TApp_container_container_boost() : TApp() {}
|
||||
};
|
||||
|
||||
TYPED_TEST_SUITE(TApp_container_container_boost, containerTypes_container_boost, );
|
||||
|
@ -139,3 +146,6 @@ TYPED_TEST(TApp_container_container_boost, containerContainer_boost) {
|
|||
TApp::run();
|
||||
EXPECT_EQ(cv.size(), 4u);
|
||||
}
|
||||
|
||||
} // namespace container
|
||||
} // namespace boost
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
|
||||
// under NSF AWARD 1414736 and by the respective contributors.
|
||||
// All rights reserved.
|
||||
//
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
#include "app_helper.hpp"
|
||||
#include "gmock/gmock.h"
|
||||
#include <complex>
|
||||
|
|
|
@ -532,7 +532,7 @@ template <class T> class SimpleWrapper {
|
|||
public:
|
||||
SimpleWrapper() : val_{} {};
|
||||
explicit SimpleWrapper(const T &initial) : val_{initial} {};
|
||||
T &getRef() { return val_; };
|
||||
T &getRef() { return val_; }
|
||||
using value_type = T;
|
||||
|
||||
private:
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner
|
||||
// under NSF AWARD 1414736 and by the respective contributors.
|
||||
// All rights reserved.
|
||||
//
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
#include "app_helper.hpp"
|
||||
#include <complex>
|
||||
#include <cstdint>
|
||||
|
@ -644,7 +650,7 @@ template <class T> class TApp_container_single : public TApp {
|
|||
public:
|
||||
using container_type = T;
|
||||
container_type cval{};
|
||||
TApp_container_single() : TApp(){};
|
||||
TApp_container_single() : TApp() {}
|
||||
};
|
||||
|
||||
using containerTypes_single =
|
||||
|
@ -674,7 +680,7 @@ template <class T> class TApp_container_pair : public TApp {
|
|||
public:
|
||||
using container_type = T;
|
||||
container_type cval{};
|
||||
TApp_container_pair() : TApp(){};
|
||||
TApp_container_pair() : TApp() {}
|
||||
};
|
||||
|
||||
using isp = std::pair<int, std::string>;
|
||||
|
@ -706,7 +712,7 @@ template <class T> class TApp_container_tuple : public TApp {
|
|||
public:
|
||||
using container_type = T;
|
||||
container_type cval{};
|
||||
TApp_container_tuple() : TApp(){};
|
||||
TApp_container_tuple() : TApp() {}
|
||||
};
|
||||
|
||||
using tup_obj = std::tuple<int, std::string, double>;
|
||||
|
@ -756,7 +762,7 @@ template <class T> class TApp_container_container : public TApp {
|
|||
public:
|
||||
using container_type = T;
|
||||
container_type cval{};
|
||||
TApp_container_container() : TApp(){};
|
||||
TApp_container_container() : TApp() {}
|
||||
};
|
||||
|
||||
TYPED_TEST_SUITE(TApp_container_container, containerTypes_container, );
|
||||
|
@ -798,7 +804,7 @@ TEST_F(TApp, unknownContainerWrapper) {
|
|||
class vopt {
|
||||
public:
|
||||
vopt() = default;
|
||||
vopt(const std::vector<double> &vdub) : val_{vdub} {};
|
||||
explicit vopt(const std::vector<double> &vdub) : val_{vdub} {};
|
||||
std::vector<double> val_{};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue