Files
fl_chart/test/extensions/path_extension_test.dart
zypherift c7e3f36b06
Some checks failed
Code Coverage / upload (push) Has been cancelled
Gh-Pages / build (push) Has been cancelled
Code Verification / verify (push) Has been cancelled
1.0.0
2025-08-09 18:17:34 +02:00

26 lines
649 B
Dart

import 'dart:ui';
import 'package:fl_chart/src/extensions/path_extension.dart';
import 'package:fl_chart/src/utils/path_drawing/dash_path.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import '../helper_methods.dart';
void main() {
test('test transparentIfWidthIsZero', () {
final path1 = Path()
..moveTo(0, 0)
..lineTo(10, 0);
expect(
path1.toDashedPath(null),
path1,
);
final path2 =
dashPath(path1, dashArray: CircularIntervalList<double>([10.0, 5.0]));
expect(HelperMethods.equalsPaths(path1.toDashedPath([10, 5]), path2), true);
});
}