#182 closed defect (fixed)
Arithmetic tests required for path coverage
| Reported by: | Paul Price | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | math | Version: | 0.2.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
The below branches were not touched during a FullUnitTest, according to path
coverage analysis by gcov.
psScalar.c:
psScalarCopy
psScalarFree
psVector.c:
L214 psVectorSort on U8,U16,U32,U64,S8,S16,S32,S64,F64,C32,C64
L309 psVectorSortIndex on U8,U16,U32,U64,S8,S16,S32,S64,F64,C32,C64
psMatrixVectorArithmetic.c:
L477 First operand is scalar; or second operand is scalar or vector
L783 Unary operator on a scalar
Change History (5)
comment:1 by , 22 years ago
| Owner: | changed from to |
|---|
comment:2 by , 22 years ago
| Owner: | changed from to |
|---|
comment:3 by , 22 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Created new unit tests and placed in file tst_psScalar.c
Updated unit tests in tst_psVectorSort_01.c, tst_psVector_Sort_02.c,
tst_psVector_Sort_03.c, tst_psVector_Sort_04.c to increase the types tested.
(The complex numbers are not relevant since the SDR did not specify sorting for
complex types.)
Updated unit tests in tst_psMatrixVectorArithmetic01.c and created new tests in
file tst_psMatrixVectorArithmetic04.c
All tests verified and check in to CVS repository.