-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ort-utils): Fix handling of
LocalFileStorage.transformPath()
The function was only applied to the path argument by the subclass `XZCompressedLocalFileStorage` which does not override all functions. This lead to inconsistencies when using `XZCompressedLocalFileStorage`. For example, `hasData(path)` could return `false` when the file was actually present, because the implementation in `LocalFileStorage` did not apply the `transformPath` function. For the same reason calling `delete` on `XZCompressedFileStorage` never deleted any files. Fix this by making sure that `transformFile` is always applied in `LocalFileStorage` and not applying it in the subclass anymore. Also add tests for all functions of `XZCompressedFileStorage` based on the tests for `LocalFileStorage` to ensure that they work as expected. Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.com>
- Loading branch information
1 parent
1e5ae99
commit f991e15
Showing
3 changed files
with
151 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters