LCOV - code coverage report
Current view: top level - src/coinjoin - common.cpp (source / functions) Hit Total Coverage
Test: total_coverage.info Lines: 0 8 0.0 %
Date: 2026-06-25 07:23:43 Functions: 0 1 0.0 %

          Line data    Source code
       1             : // Copyright (c) 2014-2024 The Dash Core developers
       2             : // Distributed under the MIT/X11 software license, see the accompanying
       3             : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
       4             : 
       5             : #include <coinjoin/common.h>
       6             : 
       7             : #include <core_io.h>
       8             : #include <univalue.h>
       9             : 
      10             : namespace CoinJoin
      11             : {
      12           0 : std::string DenominationToString(int nDenom)
      13             : {
      14           0 :     switch (CAmount nDenomAmount = DenominationToAmount(nDenom)) {
      15           0 :         case  0: return "N/A";
      16           0 :         case -1: return "out-of-bounds";
      17           0 :         case -2: return "non-denom";
      18           0 :         case -3: return "to-amount-error";
      19           0 :         default: return ValueFromAmount(nDenomAmount).getValStr();
      20             :     }
      21             : 
      22             :     // shouldn't happen
      23             :     return "to-string-error";
      24           0 : }
      25             : 
      26             : } // namespace CoinJoin

Generated by: LCOV version 1.16