Skip to content

Add tests for all methods and fix bitOrLong delegation - #43

Merged
philipp94831 merged 1 commit into
masterfrom
add-tests-for-all-methods
Nov 12, 2026
Merged

philipp94831 merged 1 commit into
masterfrom
add-tests-for-all-methods

Conversation

@philipp94831

Copy link
Copy Markdown
Member

Adds tests covering every method of BaseSeq, Seq2 and PairSeq, following the setup of KStreamXTest.

Changes

  • Add Mockito (mockito-core, mockito-junit-jupiter 5.24.0) as test dependencies
  • Methods that delegate to jOOλ: wrap a mocked Seq and verify the intended jOOλ method is called
  • Methods that post-process jOOλ results (duplicate, partition, splitAt, splitAtHead, sliding, grouped) use stubs; methods with own logic (BiFunction variants, key/value helpers, reduceByKey, joins by key, filterNot, mapToPair, factories) get behavioral tests
  • New BaseSeqTest (92), extended Seq2Test (194) and PairSeqTest (373) — 659 tests passing

Bug fix

  • BaseSeq.bitOrLong delegated to Seq.bitAndLong; now calls bitOrLong

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sonarqubecloud

sonarqubecloud Bot commented Nov 9, 2026

Copy link
Copy Markdown

@philipp94831
philipp94831 added this pull request to the merge queue Nov 12, 2026
Merged via the queue into master with commit 8047dac Nov 12, 2026
8 checks passed
@philipp94831
philipp94831 deleted the add-tests-for-all-methods branch November 12, 2026 09:09
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