mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
c++options: Remove three unused test functions.
Scheme serialization is now tested in test-option-gnc-scheme-output.scm.
This commit is contained in:
parent
eb0bd4f998
commit
a700701cd3
@ -56,7 +56,6 @@ extern "C"
|
||||
#include "gnc-option-uitype.hpp"
|
||||
|
||||
|
||||
static const char* commodity_scm_intro{"'(commodity-scm "};
|
||||
#ifndef SWIG
|
||||
size_t constexpr classifier_size_max{50};
|
||||
size_t constexpr sort_tag_size_max{10};
|
||||
|
@ -306,25 +306,6 @@ static inline std::string make_commodity_str(gnc_commodity* com)
|
||||
return com_str;
|
||||
}
|
||||
|
||||
static inline std::string make_currency_SCM_str(gnc_commodity* cur)
|
||||
{
|
||||
std::string cur_str{gnc_commodity_get_mnemonic(cur)};
|
||||
cur_str.insert(0, "\"");
|
||||
cur_str += "\"";
|
||||
return cur_str;
|
||||
}
|
||||
|
||||
static inline std::string make_commodity_SCM_str(gnc_commodity* com)
|
||||
{
|
||||
std::string com_str{commodity_scm_intro};
|
||||
com_str += "\"";
|
||||
com_str += gnc_commodity_get_namespace(com);
|
||||
com_str += "\" \"";
|
||||
com_str += gnc_commodity_get_mnemonic(com);
|
||||
com_str += "\")";
|
||||
return com_str;
|
||||
}
|
||||
|
||||
TEST_F(GncOptionCommodityTest, test_currency_out)
|
||||
{
|
||||
auto option = make_currency_option("foo", "bar", "baz", "Phony Option",
|
||||
@ -740,28 +721,6 @@ TEST_F(GncOptionAccountTest, test_account_list_in)
|
||||
EXPECT_EQ(acclist[1], sel_option.get_value<GncOptionAccountList>()[0]);
|
||||
}
|
||||
|
||||
static inline std::string
|
||||
make_account_list_SCM_str(const GncOptionAccountList& acclist)
|
||||
{
|
||||
std::string retval{"'("};
|
||||
bool first = true;
|
||||
for (auto acc : acclist)
|
||||
{
|
||||
if (first)
|
||||
{
|
||||
first = false;
|
||||
retval += '"';
|
||||
}
|
||||
else
|
||||
retval += " \"";
|
||||
retval += gnc::GUID{*qof_instance_get_guid(acc)}.to_string();
|
||||
retval += '"';
|
||||
}
|
||||
retval += ')';
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
using KT = GncOptionMultichoiceKeyType;
|
||||
class GncOptionMultichoiceTest : public ::testing::Test
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user