mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 08:20:36 +00:00
feat: Improve live traffic packet help #0
This commit is contained in:
@@ -196,5 +196,18 @@ void main() {
|
||||
1,
|
||||
);
|
||||
});
|
||||
|
||||
test('exposes detailed descriptions for known packet types', () {
|
||||
final returnedPath = LiveTrafficEntry.payloadTypeDetails(0x08);
|
||||
final control = LiveTrafficEntry.payloadTypeDetails(0x0B);
|
||||
|
||||
expect(returnedPath.title, 'FLOOD RETURNED_PATH');
|
||||
expect(
|
||||
returnedPath.description,
|
||||
contains('stores that returned path as the peer\'s direct out-path'),
|
||||
);
|
||||
expect(control.label, 'Control packet');
|
||||
expect(control.description, contains('discovery request and response'));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user