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
Этот коммит содержится в:
Aryan Salmanpour
2025-04-23 15:35:19 -04:00
коммит произвёл GitHub
родитель 232a9c6906
Коммит b7a8ded8ef
2 изменённых файлов: 2 добавлений и 1 удалений
+1 -1
Просмотреть файл
@@ -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) {