LCOV - code coverage report
Current view: top level - src/tools/kdb - cmerge.hpp (source / functions) Hit Total Coverage
Test: coverage-filtered.info Lines: 2 8 25.0 %
Date: 2019-09-12 12:28:41 Functions: 1 4 25.0 %

          Line data    Source code
       1             : /**
       2             :  * @file
       3             :  *
       4             :  * @brief
       5             :  *
       6             :  * @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
       7             :  */
       8             : 
       9             : #ifndef CMERGE_HPP
      10             : #define CMERGE_HPP
      11             : 
      12             : #include <command.hpp>
      13             : #include <kdb.hpp>
      14             : 
      15             : using namespace std;
      16             : 
      17             : class CMergeCommand : public Command
      18             : {
      19             :         kdb::KDB kdb;
      20             : 
      21             : public:
      22             :         CMergeCommand ();
      23             :         ~CMergeCommand ();
      24             : 
      25             :         virtual int execute (Cmdline const & cmdline) override;
      26             : 
      27           0 :         virtual std::string getShortOptions () override
      28             :         {
      29           0 :                 return "s";
      30             :         }
      31             : 
      32           0 :         virtual std::string getSynopsis () override
      33             :         {
      34           0 :                 return "[options] ourpath theirpath basepath resultpath";
      35             :         }
      36             : 
      37          78 :         virtual std::string getShortHelpText () override
      38             :         {
      39         234 :                 return "Three-way merge of KeySets.";
      40             :         }
      41             : 
      42           0 :         virtual std::string getLongHelpText () override
      43             :         {
      44             :                 return "Does a three-way merge between keysets.\n"
      45             :                        "On success the resulting keyset will be saved to mergepath.\n"
      46           0 :                        "On unresolved conflicts nothing will be changed.\n";
      47             :         }
      48             : };
      49             : 
      50             : #endif

Generated by: LCOV version 1.13