optiontests.h raw

   1  // Copyright (c) 2019-present The Bitcoin Core developers
   2  // Distributed under the MIT software license, see the accompanying
   3  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
   4  
   5  #ifndef BITCOIN_QT_TEST_OPTIONTESTS_H
   6  #define BITCOIN_QT_TEST_OPTIONTESTS_H
   7  
   8  #include <common/settings.h>
   9  #include <qt/optionsmodel.h>
  10  #include <univalue.h>
  11  
  12  #include <QObject>
  13  
  14  class OptionTests : public QObject
  15  {
  16      Q_OBJECT
  17  public:
  18      explicit OptionTests(interfaces::Node& node);
  19  
  20  private Q_SLOTS:
  21      void init(); // called before each test function execution.
  22      void migrateSettings();
  23      void integerGetArgBug();
  24      void parametersInteraction();
  25      void extractFilter();
  26  
  27  private:
  28      interfaces::Node& m_node;
  29      common::Settings m_previous_settings;
  30  };
  31  
  32  #endif // BITCOIN_QT_TEST_OPTIONTESTS_H
  33