-
Notifications
You must be signed in to change notification settings - Fork 199
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
Unit tests for peripheral #442
base: develop
Are you sure you want to change the base?
Conversation
7ea2b71
to
20c8126
Compare
Descriptor.fromJson(Map<String, dynamic> jsonObject, | ||
Characteristic characteristic, ManagerForDescriptor manager, | ||
{TransactionIdGenerator transactionIdGenerator = | ||
TransactionIdGenerator.INSTANCE}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TransactionIdGenerator.INSTANCE}) | |
TransactionIdGenerator.INSTANCE,}) |
and run formatter
Peripheral.fromJson(Map<String, dynamic> json, ManagerForPeripheral manager) | ||
Peripheral.fromJson(Map<String, dynamic> json, ManagerForPeripheral manager, | ||
{TransactionIdGenerator transactionIdGenerator = | ||
TransactionIdGenerator.INSTANCE}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TransactionIdGenerator.INSTANCE}) | |
TransactionIdGenerator.INSTANCE,}) |
and run formatter
Service.fromJson(Map<String, dynamic> jsonObject, Peripheral peripheral, | ||
ManagerForService managerForService, | ||
{TransactionIdGenerator transactionIdGenerator = | ||
TransactionIdGenerator.INSTANCE}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TransactionIdGenerator.INSTANCE}) | |
TransactionIdGenerator.INSTANCE,}) |
and run formatter
|
||
InternalBleManager() { | ||
InternalBleManager({TransactionIdGenerator transactionIdGenerator = TransactionIdGenerator.INSTANCE}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InternalBleManager({TransactionIdGenerator transactionIdGenerator = TransactionIdGenerator.INSTANCE}) { | |
InternalBleManager({TransactionIdGenerator transactionIdGenerator = TransactionIdGenerator.INSTANCE,}) { |
and run formatter
static int _id = 0; | ||
static const TransactionIdGenerator INSTANCE = const TransactionIdGenerator._internal(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run formatter
TransactionIdGenerator transactionIdGenerator; | ||
|
||
setUp((){ | ||
transactionIdGenerator = TransactionIdGenerator.INSTANCE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be the same instance in both tests.
No description provided.