Commit 416415b
committed
test: add unit tests for new utility functions
Add comprehensive unit tests for refactoring utilities:
- TensorHelpersTest: Test toSpan<T> for Tensor and EValue conversions
* Float and int32 tensors
* Multidimensional tensors
* Empty tensors
* Type safety and const correctness
- ComputerVisionProcessingTest: Test extractDetectionData
* Single and multiple detections
* Various indices and label formats
* Edge cases (negative coords, fractional values)
- FrameTransformTest: Test inverseRotateBboxes batch helper
* Batch rotation of multiple detections
* Empty containers and single detection
* Preservation of non-bbox fields
Updated CMakeLists.txt to register new test executables.1 parent d2c0598 commit 416415b
5 files changed
Lines changed: 6482 additions & 0 deletions
File tree
- packages/react-native-executorch/common/rnexecutorch/tests
- unit
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
174 | 181 | | |
175 | 182 | | |
176 | 183 | | |
| |||
0 commit comments