Debian Codegraph @

unit_tests/test_index.cpp

raw
1 #include "catch.hpp"
2
3 #include "common.h"
4 #include "KmerIndex.h"
5 #include "KmerIterator.hpp"
6
7 #include <string>
8
9 #include <stdio.h>
10
11
12 // TEST_CASE("Build index", "[build_index]")
13 // {
14 //
15 // ProgramOptions global_opts, local_opts;
16 // std::string short_trans {"../test/input/10_trans_gt_500_bp.fasta"};
17 //
18 // global_opts.k = 21;
19 //
20 // // TODO: figure out a better way to deal with initialization
21 // Kmer::set_k(global_opts.k);
22 //
23 // KmerIndex kidx(global_opts);
24 // kidx.BuildTranscripts(short_trans);
25 // kidx.write("tmp.idx");
26 //
27 //
28 //
29 // local_opts.index = "tmp.idx";
30 // local_opts.k = 0;
31 // KmerIndex jidx(local_opts);
32 // jidx.load(local_opts);
33 //
34 //
35 // remove("tmp.idx");
36 //
37 // REQUIRE( kidx.k == local_opts.k );
38 // REQUIRE( kidx.k == jidx.k );
39 // REQUIRE( kidx.num_trans == jidx.num_trans );
40 // REQUIRE( kidx.kmap.size() == jidx.kmap.size() );
41 // REQUIRE( kidx.ecmap.size() == jidx.ecmap.size() );
42 //
43 // // TODO: write tests to compare actual maps
44 // }