Skip to content

test: remove dead IntRecord test POCO (C8, #102)#183

Merged
Chris-Wolfgang merged 1 commit into
vNextfrom
maint/c8-dead-code
Jun 26, 2026
Merged

test: remove dead IntRecord test POCO (C8, #102)#183
Chris-Wolfgang merged 1 commit into
vNextfrom
maint/c8-dead-code

Conversation

@Chris-Wolfgang

Copy link
Copy Markdown
Owner

Summary

Closes #102 (C8: Eliminate dead code in test and benchmark projects).

Static reference analysis of both non-product projects:

  • Test project — one dead member: the IntRecord record in FixedWidthProgressTests.cs. Grep across the whole repo found zero references (no test uses it, no [MemberData]/[ClassData]/nameof). Its own XML doc — "Available for any tests that need a minimal record type" — confirms a speculative helper that was never adopted. The file held nothing else, so it is deleted entirely. (Progress/timer behavior is exercised through the Wolfgang.Etl.TestKit.Xunit contract base classes, not local files.)
  • Benchmark projectno dead code. Every [Benchmark] class is discovered by BenchmarkSwitcher.FromAssembly, both POCOs (BenchmarkRecord, BenchmarkRecordWithDate) are used, and all [GlobalSetup]/[GlobalCleanup]/[Params]/private helpers are referenced.

Verified: 303/303 tests pass, Release build clean.

Stacking

Based on chore/bump-testkit-0.9.0 (#177).

Closes #102 auto-fires when the change reaches main.

Static analysis of the test and benchmark projects for dead code. The only
finding: the `IntRecord` record in FixedWidthProgressTests.cs was never
referenced anywhere (no test, no [MemberData]/[ClassData], no nameof) — a
speculative "available for any tests that need a minimal record type" helper
that was never adopted. Its file contained nothing else, so the whole file is
removed.

The benchmark project has no dead code: every [Benchmark] class is discovered
by BenchmarkSwitcher.FromAssembly, both POCOs are used, and all [GlobalSetup]/
[Params]/private helpers are referenced.

Verified: 303/303 tests still pass, Release build clean.

Closes #102

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Base automatically changed from chore/bump-testkit-0.9.0 to vNext June 26, 2026 22:10
@Chris-Wolfgang Chris-Wolfgang merged commit dce42d6 into vNext Jun 26, 2026
@Chris-Wolfgang Chris-Wolfgang deleted the maint/c8-dead-code branch June 26, 2026 22:45
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