mirror of
https://github.com/react/react-native.git
synced 2026-09-28 13:23:09 +08:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55860 Changelog: [Internal] This diff adds the ability to convert LLVM coverage JSON output to LCOV format for C++ code coverage in react-native-fantom. Key additions: - `convertLLVMCoverage.js`: Converts LLVM coverage data (segments, branches, functions) to LCOV format lines - `types.flow.js`: Flow type definitions for LLVM coverage data structures - Test utilities and fixtures for validating the conversion with real coverage data from various C++ files (AppSettings.cpp, Class.h, DevSettingsModule.h, NativeFantom.cpp/h, RawPropsKey.cpp) This enables reporting C++ code coverage from Fantom tests in a standard format that can be consumed by coverage tools. Reviewed By: sammy-SC Differential Revision: D90135000 fbshipit-source-id: 3b22250c4b1665748b6ccb4feb79cc1c20ec7fa6