Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 9ecb38a

Browse files
committed
Debugging collect_coverage_api_test
1 parent 06d2897 commit 9ecb38a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/collect_coverage_api_test.dart

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,23 @@ void main() {
9595
expect(sources[_isolateLibFileUri],
9696
everyElement(containsPair('branchHits', isNotEmpty)));
9797
}, skip: !platformVersionCheck(2, 17));
98+
99+
test('collect_coverage_api with coverableLineCache', () async {
100+
final coverableLineCache = <String, Set<int>>{};
101+
final coverage = await _collectCoverage(coverableLineCache: coverableLineCache);
102+
103+
print(coverage);
104+
print(coverableLineCache);
105+
expect(false, true);
106+
}, skip: !platformVersionCheck(3, 2));
98107
}
99108

100109
Future<Map<String, dynamic>> _collectCoverage(
101110
{Set<String> scopedOutput = const {},
102111
bool isolateIds = false,
103112
bool functionCoverage = false,
104-
bool branchCoverage = false}) async {
113+
bool branchCoverage = false,
114+
Map<String, Set<int>>? coverableLineCache}) async {
105115
final openPort = await getOpenPort();
106116

107117
// run the sample app, with the right flags

0 commit comments

Comments
 (0)