MCPcopy Create free account
hub / github.com/Gecode/gecode / run

Method run

test/groups.cpp:89–104  ·  view source on GitHub ↗

Perform actual tests

Source from the content-addressed store, hash-verified

87 n(n0), fix(fix0), all(all0) {}
88 /// Perform actual tests
89 bool run(void) {
90 using namespace Gecode;
91 GroupSpace* s = new GroupSpace(n);
92 if (fix)
93 (void) s->status();
94 if (all) {
95 PropagatorGroup::all.kill(*s);
96 } else {
97 s->a.kill(*s);
98 s->b.kill(*s);
99 }
100 (void) s->status();
101 unsigned int p = PropagatorGroup::all.size(*s);
102 delete s;
103 return p == 0U;
104 }
105 };
106
107

Callers

nothing calls this directly

Calls 3

killMethod · 0.60
statusMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected