Define a class for testing purposes that does bad things
| 821 | |
| 822 | /// Define a class for testing purposes that does bad things |
| 823 | class EvilConfig : public CLI::Config { |
| 824 | public: |
| 825 | EvilConfig() = default; |
| 826 | std::string to_config(const CLI::App *, bool, bool, std::string) const override { throw CLI::FileError("evil"); } |
| 827 | |
| 828 | std::vector<CLI::ConfigItem> from_config(std::istream &) const override { throw CLI::FileError("evil"); } |
| 829 | }; |
| 830 | |
| 831 | TEST_CASE_METHOD(TApp, "IniRequiredbadConfigurator", "[config]") { |
| 832 |
nothing calls this directly
no outgoing calls
no test coverage detected