File: test_registry.cpp

package info (click to toggle)
indigo 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 48,936 kB
  • sloc: ansic: 332,816; cpp: 169,470; python: 20,033; java: 13,701; cs: 9,979; asm: 8,475; sql: 6,743; xml: 6,354; javascript: 1,245; sh: 555; php: 506; makefile: 54
file content (20 lines) | stat: -rw-r--r-- 361 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "test_registry.h"
#include "test.h"
#include "test_result.h"
using namespace indigo;
TestRegistry::TestRegistry()
{
}

void TestRegistry::add(Test* test)
{
    _tests.add(test);
}

void TestRegistry::run(TestResult& result)
{
    result.startTests();
    for (int i = 0; i < _tests.size(); ++i)
        _tests[i]->run(result);
    result.endTests();
}