Skip to content

network-mux:test - code style#5389

Merged
coot merged 2 commits into
mainfrom
coot/network-mux-test-code-style
Jul 14, 2026
Merged

network-mux:test - code style#5389
coot merged 2 commits into
mainfrom
coot/network-mux-test-code-style

Conversation

@coot

@coot coot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor
  • Use BL.null rather than == BL.empty
  • Removed not needed $
  • Added type signatures

@coot coot requested a review from a team as a code owner June 19, 2026 12:05
@github-project-automation github-project-automation Bot moved this to In Progress in Ouroboros Network Jun 19, 2026
* Use BL.null rather than `== BL.empty`
* Removed not needed `$`
* Added type signatures
@coot coot force-pushed the coot/network-mux-test-code-style branch from 3ea427d to cf4e829 Compare June 24, 2026 09:35
@coot coot self-assigned this Jul 2, 2026
@coot coot requested a review from Copilot July 13, 2026 15:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refines network-mux’s Test.Mux test module to align with preferred style and improve readability/maintainability without changing the intended test behavior.

Changes:

  • Refactors emptiness checks to use BL.null and removes some redundant syntax ($).
  • Cleans up formatting/indentation and simplifies some applicative expressions.
  • Adds local type signatures for helper functions in the demux SDU property.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread network-mux/test/Test/Mux.hs Outdated
…periment

The #ifdef mingw32_HOST_OS guard only matched the server-side race where
the bearer raises "network name no longer available" on Windows; the
symmetric client-side case (Left (Right clientError)) fell through to the
catch-all and failed the test.  Add the missing client-error case.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coot coot force-pushed the coot/network-mux-test-code-style branch from 5b8540f to 10ac4ab Compare July 14, 2026 08:43
@coot coot added this pull request to the merge queue Jul 14, 2026
Merged via the queue into main with commit 38e2d24 Jul 14, 2026
13 of 14 checks passed
@coot coot deleted the coot/network-mux-test-code-style branch July 14, 2026 10:25
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Ouroboros Network Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants