Skip to content

Commit 15d17f3

Browse files
author
Eugene Alekseev
committed
test inheritance fix
added interface implementation to failed test
1 parent 09f9afe commit 15d17f3

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Native/iOS/LunarConsole/LunarConsoleTests/LUActionRegistryFilterTest.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,10 @@ class LUActionRegistryFilterTest: TestCase, LUActionRegistryFilterDelegate {
416416
XCTFail("Implement me")
417417
}
418418

419+
func actionRegistryFilter(_ registry: LUActionRegistryFilter!, didRemoveVariable variable: LUCVar!, at index: UInt) {
420+
addResult("removed variable: \(variable.name!) (\(index))")
421+
}
422+
419423
// MARK: - Helpers
420424

421425
@discardableResult

Native/iOS/LunarConsole/LunarConsoleTests/LUActionRegistryTest.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ - (void)actionRegistry:(LUActionRegistry *)registry didDidChangeVariable:(LUCVar
162162
XCTFail(@"Implement me");
163163
}
164164

165+
- (void)actionRegistry:(LUActionRegistry *)registry didRemoveVariable:(LUCVar *)variable atIndex:(NSUInteger)index
166+
{
167+
[[self addResult:[NSString stringWithFormat:@"removed variable %@ (%d)", variable.name, (int) index]];
168+
}
169+
165170
#pragma mark -
166171
#pragma mark Helpers
167172

@@ -190,6 +195,11 @@ - (void)unregisterActionWithId:(int)actionId
190195
[_actionRegistry unregisterActionWithId:actionId];
191196
}
192197

198+
- (void)removeVariableWithId:(int)variableId
199+
{
200+
[_actionRegistry removeVariableWithId:variableId];
201+
}
202+
193203
- (BOOL)unregisterActionWithName:(NSString *)name
194204
{
195205
for (LUAction* action in _actionRegistry.actions)

0 commit comments

Comments
 (0)