Skip to content

feat: added lambda processing instead of returning a list#215

Open
fsniper wants to merge 1 commit into
BjoernPetersen:mainfrom
fsniper:lambda-methods
Open

feat: added lambda processing instead of returning a list#215
fsniper wants to merge 1 commit into
BjoernPetersen:mainfrom
fsniper:lambda-methods

Conversation

@fsniper

@fsniper fsniper commented Oct 18, 2024

Copy link
Copy Markdown

I added lambda processing to the parsing methods.

These methods are beneficial in some cases like:

  • When working with large playlists, memory can become a bottleneck.
  • You may not want to have the whole list but trying to filter out some elements.

@BjoernPetersen

Copy link
Copy Markdown
Owner

Thanks for the contribution! I'll have a closer look within the next few days.

@codecov

codecov Bot commented Oct 27, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 62.50000% with 12 lines in your changes missing coverage. Please review.

Project coverage is 67.39%. Comparing base (c62a72f) to head (6a1ec88).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...rc/main/kotlin/net/bjoernpetersen/m3u/M3uParser.kt 62.50% 9 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #215      +/-   ##
============================================
- Coverage     69.73%   67.39%   -2.35%     
- Complexity       47       53       +6     
============================================
  Files             4        4              
  Lines           152      184      +32     
  Branches         28       29       +1     
============================================
+ Hits            106      124      +18     
- Misses           28       41      +13     
- Partials         18       19       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@BjoernPetersen BjoernPetersen self-assigned this Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants