DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Run()

bool TFModule::Run ( bool fatal,
float dt )
inlineprivate

См. определение в файле TestFramework.c строка 133

134 {
135 array<TFCaller> done = new array<TFCaller>();
136
137 // Run the tests
138 int runningTests = m_Tests.Count();
139 for (int i = 0; i < runningTests; ++i)
140 {
141 TFCaller t = m_Tests[i];
142 if (RunTest(t, dt))
143 done.Insert(t);
144 }
145
146 // Remove finished tests
147 foreach (TFCaller doneT : done)
148 m_Tests.RemoveItem(doneT);
149
150 // Validate fatal
151 if (fatal && m_Tests.Count() > 0)
152 {
153 Print("- Active tests -------------------------");
154 foreach (TFCaller rTest : m_Tests)
155 Print(rTest.GetTest());
156 Print("----------------------------------------");
157
158 ErrorEx("Not all tests are done while run was fatal.");
159 m_Tests.Clear();
160 }
161
162 return m_Tests.Count() == 0;
163 }
ref TFCallerArr m_Tests
Определения TestFramework.c:88
bool RunTest(TFCaller caller, float dt)
Определения TestFramework.c:165
proto void Print(void var)
Prints content of variable to console/log.
enum ShapeType ErrorEx

Перекрестные ссылки ErrorEx, m_Tests, Print() и RunTest().