Test: update TestInvalidGetErrorName test to cover all possible error names (#144)
* Test: update TestInvalidGetErrorName test to cover all possible error names * Add ROCJPEG_STATUS_MAX_VALUE * clean up
This commit is contained in:
committed by
GitHub
orang tua
232a9c6906
melakukan
b7a8ded8ef
@@ -334,7 +334,7 @@ int RocJpegApiNegativeTests::TestInvalidGetErrorName() {
|
||||
}
|
||||
|
||||
// Scenario 2: Pass a valid error code and ensure it returns a non-null name
|
||||
for (int i = 0; i >= -8; i--) {
|
||||
for (int i = 0; i >= ROCJPEG_STATUS_MAX_VALUE; i--) {
|
||||
RocJpegStatus valid_status = static_cast<RocJpegStatus>(i);;
|
||||
error_name = rocJpegGetErrorName(valid_status);
|
||||
if (error_name == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user