parser: restore most unit tests

This commit is contained in:
Dirk-Jan C. Binnema
2020-12-05 11:09:16 +02:00
parent 3010e614a3
commit ecafe54c99
6 changed files with 60 additions and 38 deletions

View File

@ -21,6 +21,7 @@
#ifndef __PARSER_HH__
#define __PARSER_HH__
#include "utils/mu-utils.hh"
#include <string>
#include <vector>
#include <memory>
@ -72,12 +73,17 @@ operator<< (std::ostream& os, const Warning& w)
class Parser {
public:
enum struct Flags {
None = 0,
UnitTest = 1 << 0
};
/**
* Construct a query parser object
*
* @param store a store object ptr, or none
*/
Parser(const Store& store);
Parser(const Store& store, Flags=Flags::None);
/**
* DTOR
*
@ -99,6 +105,8 @@ private:
std::unique_ptr<Private> priv_;
};
MU_ENABLE_BITOPS(Parser::Flags);
} // namespace Mu
#endif /* __PARSER_HH__ */