16 template<
typename SEQTYPE>
24 permit_flag_updates(exports.get_modifying_flag_ref(), -1)
32 templ = aliview->
has_data() ?
new SEQTYPE(aliview) :
NULp;
39 groupScale.linear = 1.0;
44 template<
typename SEQTYPE>
48 fake_agt<SEQTYPE> *agt;
50 long prev_combine_count;
53 void common_init(
const char *dbname) {
59 agt =
new fake_agt<SEQTYPE>(parsimony);
89 AP_tree_nlen *root = apMain.get_root_node();
93 AP_pars_root *
tree_root() {
return agt->get_tree_root(); }
117 #if defined(ASSERTION_USED) || defined(UNIT_TESTS)
142 #if defined(PROVIDE_PRINT)
143 void dump2file(
const char *name) { apMain.dump2file(name); }
150 # define TEST_EXPECT_COMBINES_PERFORMED(env,expComb) TEST_EXPECT_EQUAL((env).combines_performed(), expComb)
154 #error test_env.h included twice
fake_agt(ArbParsimony &parsimony_)
LocallyModify< int > permit_flag_updates
void set_tree(AWT_graphic_parsimony *tree_)
void accept_if(bool cond)
AWT_graphic_parsimony * graphic_tree()
long combines_performed()
Validity all_available_pops_will_produce_valid_trees()
GBDATA * get_gb_main() const
Validity revert_will_produce_valid_tree()
ARB_edge rootEdge(TreeRoot *root)
AP_pars_root * tree_root()
size_t get_user_push_counter() const
Validity all_available_reverts_will_produce_valid_trees()
static long combine_count()
AP_tree_nlen * root_node()
static void destroy(AP_tree_nlen *root)
GB_ERROR load_tree(const char *tree_name)
Level get_user_push_counter()
void fake_AW_init_color_groups()
void accept_if(bool cond)
static void error(const char *msg)
AP_tree_nlen * rootNode()
GB_ERROR open(const char *db_server)
KL_Settings & get_KL_settings()
#define TEST_EXPECT_NULL(n)
void read_tree_settings() OVERRIDE
static void initialize(AP_tree_nlen *root)
Level get_frameLevel() const
Validity pop_will_produce_valid_tree()
void init(AliView *aliview, AP_sequence *seq_prototype, bool link_to_database_, bool insert_delete_cbs)
GB_transaction ta(gb_var)
#define ASSERT_VALID_TREE(tree)
GBDATA * get_gb_main(DbSel db)
#define TEST_EXPECT_EQUAL(expr, want)
void init(AliView *aliview)
PARSIMONY_testenv(const char *dbname)