Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

100% code coverage #5

Closed
Silic0nS0ldier opened this issue Jan 15, 2019 · 2 comments
Closed

100% code coverage #5

Silic0nS0ldier opened this issue Jan 15, 2019 · 2 comments
Assignees

Comments

@Silic0nS0ldier Silic0nS0ldier self-assigned this Mar 17, 2019
Silic0nS0ldier added a commit that referenced this issue Mar 17, 2019
- Fix AssetsTest::testGetAbsoluteUrlWithString
- Stabalise returned absolute path
Silic0nS0ldier added a commit that referenced this issue Mar 17, 2019
- `realpath` doubles as an existance check
- Removed redundant edge case handler for mime resolution
- Fixed test busted by previous commit
@Silic0nS0ldier
Copy link
Member Author

Special note about https://codecov.io/gh/userfrosting/assets/src/master/src/AssetsTemplatePlugin.php, there is an unreachable code path that was implemented to facilitate later expansion and as such at this point in time cannot reach complete code coverage.

@Silic0nS0ldier
Copy link
Member Author

Actually, the mentioned code can just be removed. The scope of the helper is for bundles exclusively.

Silic0nS0ldier added a commit that referenced this issue Mar 17, 2019
 - Removed dead code
- Fixed documented type
- Test fall through case in mime resolution
Silic0nS0ldier added a commit that referenced this issue Mar 17, 2019
- Removed unnecessary variable
- Covered potential failure case
- Deprecated legacy code in gulp schema loader
- Fixed silent failure in gulp bundle loader
- Add test cases for gulp bundle loading failure scenarios
Silic0nS0ldier added a commit that referenced this issue Apr 6, 2019
- Stabalised absolute path returned by `Assets::urlPathToAbsolutePath` and hardened against silent failure.
- Slightly simplified MIME resolution logic.
- Marked usage of `Assets::readSchema` without a respository as the return value.
- Removed various bit of dead code.
- Fixed silent failure in `gulp-bundle-assets` loading support.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant