Skip to content

Commit

Permalink
test inheritance fix
Browse files Browse the repository at this point in the history
added interface implementation to failed test
  • Loading branch information
Eugene Alekseev committed May 11, 2021
1 parent 09f9afe commit 15d17f3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@ class LUActionRegistryFilterTest: TestCase, LUActionRegistryFilterDelegate {
XCTFail("Implement me")
}

func actionRegistryFilter(_ registry: LUActionRegistryFilter!, didRemoveVariable variable: LUCVar!, at index: UInt) {
addResult("removed variable: \(variable.name!) (\(index))")
}

// MARK: - Helpers

@discardableResult
Expand Down
10 changes: 10 additions & 0 deletions Native/iOS/LunarConsole/LunarConsoleTests/LUActionRegistryTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ - (void)actionRegistry:(LUActionRegistry *)registry didDidChangeVariable:(LUCVar
XCTFail(@"Implement me");
}

- (void)actionRegistry:(LUActionRegistry *)registry didRemoveVariable:(LUCVar *)variable atIndex:(NSUInteger)index
{
[[self addResult:[NSString stringWithFormat:@"removed variable %@ (%d)", variable.name, (int) index]];
}

#pragma mark -
#pragma mark Helpers

Expand Down Expand Up @@ -190,6 +195,11 @@ - (void)unregisterActionWithId:(int)actionId
[_actionRegistry unregisterActionWithId:actionId];
}

- (void)removeVariableWithId:(int)variableId
{
[_actionRegistry removeVariableWithId:variableId];
}

- (BOOL)unregisterActionWithName:(NSString *)name
{
for (LUAction* action in _actionRegistry.actions)
Expand Down

0 comments on commit 15d17f3

Please sign in to comment.