Skip to content

test: improve coverage to ~100% across all modules#4

Merged
senrecep merged 4 commits into
mainfrom
feat/improve-test-coverage
May 27, 2026
Merged

test: improve coverage to ~100% across all modules#4
senrecep merged 4 commits into
mainfrom
feat/improve-test-coverage

Conversation

@senrecep
Copy link
Copy Markdown
Owner

Summary

8 modülde coverage %100'e taşındı, 156 yeni test eklendi.

Dosya Önce Sonra +Test
rule-engine.ts 60% 100% +18
result-async.ts 73% 100% +35
result-chain.ts 74% 100% +23
result.ts 77% 100% +43
entity-base.ts 72% 100% +8
json-utils.ts 79% 100% +5
maybe.ts 91% 100% +11
cloneable.ts 81% 99% +13

cloneable.ts kalan %1: cloneTypedArray içinde structurally unreachable dead code (2 satır).

Total: 818 → 974 tests (+156)

Test plan

  • 974 test geçiyor
  • Biome lint/format temiz
  • Codecov'da coverage artışı görünecek

🤖 Generated with Claude Code

senrecep and others added 2 commits May 27, 2026 08:44
- Add junit reporter to vitest config
- Upload JUnit XML via codecov/test-results-action@v1 on all Node versions
- Enables flaky test detection and test run time tracking on Codecov

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- rule-engine.ts: 60% → 100% (+18 tests, typed combinators + async paths)
- result-async.ts: 73% → 100% (+35 tests, bindIf/tapIf/sequence/partition)
- result-chain.ts: 74% → 100% (+23 tests, async variants + conditionals)
- result.ts: 77% → 100% (+43 tests, tryGet/switch/tryCatch/fromValue etc.)
- entity-base.ts: 72% → 100% (+8 tests, id management + initial values)
- json-utils.ts: 79% → 100% (+5 tests, error branches via vi.spyOn)
- maybe.ts: 91% → 100% (+11 tests, tryGet/switch/flatten/toArray)
- cloneable.ts: 81% → 99% (+13 tests, 2 lines structurally unreachable dead code)

Total: 818 → 974 tests (+156)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

senrecep and others added 2 commits May 27, 2026 08:55
…ents

- Enable project coverage status check on PRs (target: auto)
- Show project + patch coverage in PR comments

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add test for default branch via Reflect.construct with unknown method
- Add tests for POST/PUT/PATCH null body fallback branches

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@senrecep senrecep merged commit 47b52f4 into main May 27, 2026
8 checks passed
@senrecep senrecep deleted the feat/improve-test-coverage branch May 27, 2026 06:12
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.

1 participant