mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
Push meshcore_client and refresh pub
This commit is contained in:
@@ -113,4 +113,17 @@ void main() {
|
||||
expect(parsed.index, equals(9));
|
||||
});
|
||||
});
|
||||
|
||||
group('safeImageDataBytesForPath', () {
|
||||
test('caps direct-route fragments to conservative default size', () {
|
||||
expect(safeImageDataBytesForPath(0), equals(ImagePacket.maxDataBytes));
|
||||
});
|
||||
|
||||
test('shrinks for longer paths but never exceeds conservative default', () {
|
||||
expect(
|
||||
safeImageDataBytesForPath(2),
|
||||
lessThanOrEqualTo(ImagePacket.maxDataBytes),
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user