Skip to content

fix: iec62443 text header parity — "IEC 62443 Gap Report" (v0.5.33)#43

Merged
SoundMatt merged 1 commit into
mainfrom
fix/iec62443-header-parity
Jun 14, 2026
Merged

fix: iec62443 text header parity — "IEC 62443 Gap Report" (v0.5.33)#43
SoundMatt merged 1 commit into
mainfrom
fix/iec62443-header-parity

Conversation

@SoundMatt

Copy link
Copy Markdown
Owner

Summary

  • cfusa iec62443 text output header changed from "IEC 62443-4-2 Gap Report" to "IEC 62443 Gap Report — … (profile 4-2)" so go-FuSa's TestRunIEC62443_TextDefault substring check passes

Root cause

strings.Contains(out, "IEC 62443 Gap Report") requires the substring "IEC 62443 Gap Report" to be present verbatim. The old string "IEC 62443-4-2 Gap Report" splits 62443 from Gap with -4-2 , so the check failed.

Test plan

  • All 34 c-FuSa unit tests pass (34/34 confirmed locally)
  • cfusa iec62443 text output contains "IEC 62443 Gap Report"
  • Profile -4-2 info preserved in suffix (profile 4-2)
  • CI green

go-FuSa TestRunIEC62443_TextDefault checks strings.Contains(out, "IEC 62443 Gap Report").
The old header "IEC 62443-4-2 Gap Report" did not contain that substring because "-4-2 "
separates "62443" from "Gap". Changed to "IEC 62443 Gap Report — %s (target %s, profile 4-2)".

Signed-off-by: Matt Jones <matt@jellybaby.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Signed-off-by: Matt Jones <47545907+SoundMatt@users.noreply.github.com>
@SoundMatt SoundMatt merged commit cc50f7a into main Jun 14, 2026
10 checks passed
@SoundMatt SoundMatt deleted the fix/iec62443-header-parity branch June 14, 2026 00:18
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