summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/testsuite/tests-collector.cc
blob: b3365b2a4147ad4783d70ccb596d8ce489c74cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 ** \file testsuite/tests-collector.cc
 ** \brief Implementation of testsuite::TestsCollector.
 */

#include <testsuite/tests-collector.hh>

namespace testsuite
  {

    void TestsCollector::operator()(const ast::FunctionDec& e)
     {
       if (is_a_test_function(e))
         {
           tests_.push_back(&e);
         }
     }

  } // namespace testsuite