Part-DB-server/tests/Services/InfoProviderSystem/DTOs
frank-f 7a6b045030
Improve parameter parsing (#583)
* DigiKey: Skip empty values

* Move improved range detection from LCSCProvider to ParameterDTO class
Improve numeric value detection by moving extra info to value_text

* ParameterDTO: Add micro unit prefix

* Bring $value_text2 to a defined state

* ParameterDTO: Don't overwrite $unit if it's not empty

* ParameterDTO: Don't overwrite $unit if it's not empty

* Correct some inaccuacies in comments

* Added tests and fixed certain edge cases in parsing parameters

* Added more tests for parameter parsing

---------

Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2024-04-15 22:33:27 +02:00
..
FileDTOTest.php Use rawurlencode instead of urlencode to sanatize URL-unsafe characters returned by the info providers. 2024-02-24 23:58:27 +01:00
ParameterDTOTest.php Improve parameter parsing (#583) 2024-04-15 22:33:27 +02:00
PurchaseInfoDTOTest.php Added tests for DTOConverter 2023-07-15 18:18:35 +02:00
SearchResultDTOTest.php Escape not only the pathes of FileDTO objects returned by info providers but the preview image url too. 2024-03-05 22:52:27 +01:00