Skip to content

Commit 6e2b127

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

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ - (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+
XCTFail(@"Implement me");
168+
//[[self addResult:[NSString stringWithFormat:@"removed variable %@ (%d)", variable.name, (int) index]];
169+
}
170+
165171
#pragma mark -
166172
#pragma mark Helpers
167173

@@ -190,6 +196,11 @@ - (void)unregisterActionWithId:(int)actionId
190196
[_actionRegistry unregisterActionWithId:actionId];
191197
}
192198

199+
- (void)removeVariableWithId:(int)variableId
200+
{
201+
[_actionRegistry removeVariableWithId:variableId];
202+
}
203+
193204
- (BOOL)unregisterActionWithName:(NSString *)name
194205
{
195206
for (LUAction* action in _actionRegistry.actions)

0 commit comments

Comments
 (0)