Commit 0d58270
Alex J Lennon
Improve test coverage with comprehensive edge case tests
- Add WGS84ConverterExtendedTests (12 tests):
- Large offset coordinate conversions
- Altitude changes
- Extreme coordinates (poles, date line)
- LatLonAltEstimate2 method
- LatLonAltkm2UnityPos conversions
- Edge cases for coordinate system conversions
- Add UWB2GPSConverterExtendedTests (10 tests):
- Collinear beacons handling
- Very close beacons
- Invalid distance values (negative, zero)
- Refinement algorithm edge cases (max iterations, zero learning rate)
- Invalid latLonAlt data handling
- Multiple unknown nodes
- Isolated nodes with no neighbors
- Fix UWBManager null message handling:
- Add explicit null check before JSON deserialization
- Prevents ArgumentNullException from propagating
Coverage improvement:
- Line coverage: 58% → 59.4%
- Total tests: 92 → 112 (+20 tests)
- All tests passing ✅1 parent 3db76ad commit 0d58270
File tree
4 files changed
+817
-0
lines changed- src
- tests
4 files changed
+817
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
| |||
0 commit comments