File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 3333 with :
3434 path : ' ./${{ inputs.directory }}/coverage/lcov.info'
3535 min_coverage : ${{ inputs.min-coverage }}
36- exclude : ' lib/src/native/**/binding.dart lib/src/native/java/**/*.dart lib/src/native/cocoa/**/*.dart lib/src/native/sentry_native_channel.dart'
Original file line number Diff line number Diff line change 4747
4848 if ${{ (matrix.target == 'linux' && matrix.sdk == 'stable' && 'true') || 'false' }} ; then
4949 $testCmd --coverage
50+ if [[ "$INPUT_DIRECTORY" == 'packages/flutter' ]]; then
51+ # Remove native binding/bridge files from coverage.
52+ # These FFI/JNI bindings are currently not unit tested due to limitations of FFI/JNI mocking.
53+ dart run remove_from_coverage -f coverage/lcov.info -r 'binding.dart'
54+ dart run remove_from_coverage -f coverage/lcov.info -r 'lib/src/native/sentry_native_channel.dart'
55+ dart run remove_from_coverage -f coverage/lcov.info -r '^lib/src/native/java/.*\.dart$'
56+ dart run remove_from_coverage -f coverage/lcov.info -r '^lib/src/native/cocoa/.*\.dart$'
57+ fi
5058 else
5159 $testCmd
5260 fi
You can’t perform that action at this time.
0 commit comments