Skip to content

test: add table-driven tests for matrix utils - #172

Closed
Macawls wants to merge 1 commit into
etkecc:mainfrom
Macawls:test/matrix-utils-table-driven
Closed

Macawls wants to merge 1 commit into
etkecc:mainfrom
Macawls:test/matrix-utils-table-driven

Conversation

@Macawls

@Macawls Macawls commented Oct 11, 2026

Copy link
Copy Markdown
  • Add table-driven tests for IsValidAlias, IsValidID, and ServerFrom in internal/utils
  • Covers edge cases: empty strings, boundary lengths, invalid prefixes, ports, and trailing colons
  • These exported functions previously had no test coverage

@aine-etke

Copy link
Copy Markdown
Member

Unfortunately, we can't accept this PR - it doesn't improve anything and instead pins bugged behavior as expected one in tests.

But thank you for drawing attention to that, the problem has been fixed in the last commit.

@aine-etke aine-etke closed this Oct 12, 2026
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.

2 participants