Skip to content

chore(test): use placeholder values in fixtures - #43

Merged
kshahbw merged 1 commit into
mainfrom
chore/test-fixture-placeholders
Aug 24, 2026
Merged

chore(test): use placeholder values in fixtures#43
kshahbw merged 1 commit into
mainfrom
chore/test-fixture-placeholders

Conversation

@kshahbw

@kshahbw kshahbw commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

The 10DLC fixtures were seeded from a captured record and carried its values along with it. This swaps them for placeholders so the fixtures are self-contained and carry nothing incidental.

Substitutions are identity-preserving — no test semantics change.

The two new brand-ID placeholders use unused BEXMPL slots rather than BEXMPL1/BEXMPL2. Those already denote distinct brands and both appear alongside the replaced ID in cmd/tendlc/brand_test.go, so reusing them would have quietly merged two identities in a test.

Verified: go build, full suite, gofmt and golangci-lint all clean. A break-and-restore check confirms the renamed fixtures still discriminate — planting a wrong ID fails TestBrandUpdatePrintsAcceptanceReceiptWithIDsAndLatencyNote — so the rename did not neuter the assertions.

@kshahbw
kshahbw requested review from a team as code owners August 24, 2026 18:51
@bwappsec

bwappsec commented Aug 24, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

The 10DLC fixtures were seeded from a captured record and carried its
values along with it. Swap them for placeholders so the fixtures are
self-contained and carry nothing incidental.

Substitutions are identity-preserving. The two new brand-ID placeholders
use unused BEXMPL slots rather than BEXMPL1/BEXMPL2, which already denote
distinct brands and both appear alongside the replaced ID in
cmd/tendlc/brand_test.go -- reusing those would have merged two identities.

Verified: build, full suite, gofmt and golangci-lint clean, plus a
break-and-restore check confirming the renamed fixtures still discriminate
rather than passing vacuously.
@kshahbw
kshahbw force-pushed the chore/test-fixture-placeholders branch from 973e108 to d89c6a8 Compare August 24, 2026 18:54
@kshahbw
kshahbw merged commit 7a82393 into main Aug 24, 2026
8 checks passed
@kshahbw
kshahbw deleted the chore/test-fixture-placeholders branch August 24, 2026 18:58
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.

4 participants