Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ScriptInvokerTests
+ Граф наследования:ScriptInvokerTests:

Закрытые члены

void ScriptInvokerTests ()
 
void ~ScriptInvokerTests ()
 
TFResult TestFirstUnique ()
 
TFResult TestSecondUnique ()
 
TFResult TestInsertRemoveUnique ()
 
TFResult TestInsertUniqueImmediate ()
 
TFResult TestClearRunning ()
 
TFResult TestInvokeRunning ()
 
TFResult TestInsertRunning ()
 
void InvokeLog (string s)
 
void InvokeReset ()
 
void InvokeClear (string s)
 
void InvokeInvoke (string s)
 
void InvokeInsert (string s)
 

Закрытые данные

ref ScriptInvoker m_Invoker
 
int m_InvokeCount
 

Подробное описание

Конструктор(ы)

◆ ScriptInvokerTests()

void ScriptInvokerTests ( )
inlineprivate
10 {
12
13 //AddInitTest("TestFirstUnique");
14 //AddInitTest("TestSecondUnique");
15 //AddInitTest("TestInsertRemoveUnique");
16 //AddInitTest("TestInsertUniqueImmediate");
17 //AddInitTest("TestClearRunning");
18 //AddInitTest("TestInvokeRunning");
19 AddInitTest("TestInsertRunning");
20 }
void AddInitTest(string test)
Definition TestFramework.c:249
ScriptInvoker Class provide list of callbacks usage:
Definition tools.c:116
ref ScriptInvoker m_Invoker
Definition ScriptInvokerTests.c:3

Перекрестные ссылки AddInitTest() и m_Invoker.

◆ ~ScriptInvokerTests()

void ~ScriptInvokerTests ( )
inlineprivate
26 {
27
28 }

Методы

◆ InvokeClear()

void InvokeClear ( string s)
inlineprivate
176 {
177 InvokeLog(s);
178 m_Invoker.Clear();
179 }
Definition EntityAI.c:95
void InvokeLog(string s)
Definition ScriptInvokerTests.c:163

Перекрестные ссылки InvokeLog() и m_Invoker.

Используется в TestClearRunning().

◆ InvokeInsert()

void InvokeInsert ( string s)
inlineprivate
188 {
189 InvokeLog(s);
191 }
EScriptInvokerInsertFlags
Definition tools.c:130
void InvokeInsert(string s)
Definition ScriptInvokerTests.c:187

Перекрестные ссылки InvokeInsert(), InvokeLog() и m_Invoker.

Используется в InvokeInsert() и TestInsertRunning().

◆ InvokeInvoke()

void InvokeInvoke ( string s)
inlineprivate
182 {
183 InvokeLog(s);
184 m_Invoker.Invoke(s);
185 }

Перекрестные ссылки InvokeLog() и m_Invoker.

Используется в TestInvokeRunning().

◆ InvokeLog()

void InvokeLog ( string s)
inlineprivate
164 {
165 //Debug.TFLog(s, this, "InvokeLog");
167 }
int m_InvokeCount
Definition ScriptInvokerTests.c:4

Перекрестные ссылки m_InvokeCount.

Используется в InvokeClear(), InvokeInsert(), InvokeInvoke(), TestClearRunning(), TestFirstUnique(), TestInsertRemoveUnique(), TestInsertUniqueImmediate() и TestSecondUnique().

◆ InvokeReset()

void InvokeReset ( )
inlineprivate
170 {
171 m_Invoker.Clear();
172 m_InvokeCount = 0;
173 }

Перекрестные ссылки m_InvokeCount и m_Invoker.

Используется в TestClearRunning(), TestFirstUnique(), TestInsertRemoveUnique(), TestInsertRunning(), TestInsertUniqueImmediate(), TestInvokeRunning() и TestSecondUnique().

◆ TestClearRunning()

TFResult TestClearRunning ( )
inlineprivate
113 {
114 InvokeReset();
115
116 m_Invoker.Insert(InvokeClear);
117 m_Invoker.Insert(InvokeLog);
118
119 m_Invoker.Invoke("TestClearRunning");
120 bool count = Assert(m_InvokeCount == 1);
121
122 InvokeReset();
123
124 return BTFR(count);
125 }
bool Assert(bool condition)
Definition TestFramework.c:262
TFResult BTFR(bool result)
Definition TestFramework.c:278
void InvokeClear(string s)
Definition ScriptInvokerTests.c:175
void InvokeReset()
Definition ScriptInvokerTests.c:169

Перекрестные ссылки Assert(), BTFR(), InvokeClear(), InvokeLog(), InvokeReset(), m_InvokeCount и m_Invoker.

◆ TestFirstUnique()

TFResult TestFirstUnique ( )
inlineprivate
35 {
37
40 bool insert2 = m_Invoker.Insert(InvokeLog);
42
43 m_Invoker.Invoke("TestFirstUnique");
44 bool count = Assert(m_InvokeCount == 1);
45
47
48 return BTFR(insert1 && !insert2 && count);
49 }

Перекрестные ссылки Assert(), BTFR(), InvokeLog(), InvokeReset(), m_InvokeCount и m_Invoker.

◆ TestInsertRemoveUnique()

TFResult TestInsertRemoveUnique ( )
inlineprivate
73 {
75
78 bool remove1 = m_Invoker.Remove(InvokeLog);
80 bool insert2 = m_Invoker.Insert(InvokeLog);
82
83 m_Invoker.Invoke("TestInsertRemoveUnique");
84 bool count = Assert(m_InvokeCount == 1);
85
87
88 return BTFR(insert1 && remove1 && insert2 && count);
89 }

Перекрестные ссылки Assert(), BTFR(), InvokeLog(), InvokeReset(), m_InvokeCount и m_Invoker.

◆ TestInsertRunning()

TFResult TestInsertRunning ( )
inlineprivate
145 {
146 InvokeReset();
147
148 m_Invoker.Insert(InvokeInsert);
149
150 m_Invoker.Invoke("TestInvokeRunning");
152 bool count = Assert(m_InvokeCount == 129);
153
154 InvokeReset();
155
156 return BTFR(count);
157 }
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки Assert(), BTFR(), InvokeInsert(), InvokeReset(), m_InvokeCount, m_Invoker и Print().

◆ TestInsertUniqueImmediate()

TFResult TestInsertUniqueImmediate ( )
inlineprivate
94 {
96
99 bool insert2 = m_Invoker.Insert(InvokeLog, EScriptInvokerInsertFlags.IMMEDIATE);
101
102 m_Invoker.Invoke("TestInsertUniqueImmediate");
103 bool count = Assert(m_InvokeCount == 1);
104
105 InvokeReset();
106
107 return BTFR(insert1 && !insert2 && count);
108 }

Перекрестные ссылки Assert(), BTFR(), InvokeLog(), InvokeReset(), m_InvokeCount и m_Invoker.

◆ TestInvokeRunning()

TFResult TestInvokeRunning ( )
inlineprivate
130 {
131 InvokeReset();
132
133 m_Invoker.Insert(InvokeInvoke);
134
135 m_Invoker.Invoke("TestInvokeRunning");
136
137 InvokeReset();
138
139 return BTFR(false); // This can never succeed, it will never even reach this point
140 }
void InvokeInvoke(string s)
Definition ScriptInvokerTests.c:181

Перекрестные ссылки BTFR(), InvokeInvoke(), InvokeReset() и m_Invoker.

◆ TestSecondUnique()

TFResult TestSecondUnique ( )
inlineprivate
54 {
56
57 bool insert1 = m_Invoker.Insert(InvokeLog);
61
62 m_Invoker.Invoke("TestSecondUnique");
63 bool count = Assert(m_InvokeCount == 1);
64
66
67 return BTFR(insert1 && !insert2 && count);
68 }

Перекрестные ссылки Assert(), BTFR(), InvokeLog(), InvokeReset(), m_InvokeCount и m_Invoker.

Поля

◆ m_InvokeCount

◆ m_Invoker


Объявления и описания членов класса находятся в файле: