Skip to content

Commit

Permalink
Prevent direct TestFixture instantiation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpounds committed Jan 21, 2017
1 parent eddc13c commit db6e3cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tpunit++.hpp
Expand Up @@ -234,8 +234,6 @@ namespace tpunit {
int _traces;
};

public:

/**
* Base constructor to register methods with the test fixture. A test
* fixture can register up to 50 methods.
Expand Down Expand Up @@ -305,6 +303,8 @@ namespace tpunit {
return new method(this, static_cast<void (TestFixture::*)()>(_method), _name, _type);
}

public:

static int tpunit_detail_do_run() {
TestFixture* f = *tpunit_detail_fixtures();
while(f) {
Expand Down

0 comments on commit db6e3cb

Please sign in to comment.