Skip to content

test(cs/lpp): mirror lpc write-CB test parity incl. partial write - #250

Open
andig wants to merge 1 commit into
enbility:devfrom
andig:test/lpp-partial-write-parity
Open

test(cs/lpp): mirror lpc write-CB test parity incl. partial write#250
andig wants to merge 1 commit into
enbility:devfrom
andig:test/lpp-partial-write-parity

Conversation

@andig

@andig andig commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

What

usecases/cs/lpp Test_loadControlWriteCB had no assertions and lacked the partial-write case present in the equivalent cs/lpc test. This brings lpp to parity with lpc:

  • assert eventCalled at each step (invalid msg, empty data, no matching limit, matching limit)
  • add the partial write case (Filter[].CmdControl.Partial) so partial-write handling is consistently covered across both control-system usecases

Why

Production write callbacks in lpc/lpp are identical, but only lpc verified partial-write behavior. Test coverage now matches.

Scope

Test-only. No production change. go test ./usecases/cs/lpp/ passes.

🤖 Generated with Claude Code

lpp's Test_loadControlWriteCB had no assertions and no partial-write
case, unlike lpc. Bring it to parity: assert eventCalled per step and
add the partial write case (CmdControl.Partial) so partial handling is
consistently covered across both control-system usecases.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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