Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider opening CBM classes for subclassing #26

Closed
s-hocking opened this issue Sep 3, 2020 · 1 comment
Closed

Consider opening CBM classes for subclassing #26

s-hocking opened this issue Sep 3, 2020 · 1 comment

Comments

@s-hocking
Copy link
Contributor

The CBM library is great for simulating a full Bluetooth connection workflow, but sometimes I just want to satisfy a dependency on a CoreBluetooth object in order to test other parts of a class. For example, I might have a class with a dependency on a CBPeripheral object that I want to test without using any CoreBluetooth capabilities.

To achieve this use case it would be helpful if the core CBM classes were open, so that they could be subclassed and used this way.

Subclassing might also be a useful way of customising CBM behaviour for test purposes.

@philips77
Copy link
Member

If you could prepare PR, I'll release the version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants