summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/testsuite/tests-collector.hxx
blob: 9570dc13ad6ed6c94f890f98606a181976a6826b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include <testsuite/tests-collector.hh>

namespace testsuite
  {

    inline std::vector<const ast::FunctionDec*>& TestsCollector::tests_get()
    {
      return tests_;
    }

    inline bool
    TestsCollector::is_a_test_function(const ast::FunctionDec& node)
    {
      return node.name_get().get().starts_with("test_")
        && node.formals_get().empty();
    }


  } // namespace testsuite