Skip to content

test: empty messages and no-op compact edge cases - #21

Merged
royalpinto007 merged 4 commits into
AgentPostmortem:mainfrom
wized2:test/edge-empty-messages
Sep 14, 2026
Merged

royalpinto007 merged 4 commits into
AgentPostmortem:mainfrom
wized2:test/edge-empty-messages

Conversation

@wized2

@wized2 wized2 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Description

Adds focused unit tests for under-covered edge cases:

  • analyzePayload with empty messages, whitespace-only content, and empty system/content blocks
  • compact is a no-op (or non-destructive) on already-small payloads under a large maxTokens budget

Type of change

  • Tests

Related to issue #2 (edge-case coverage).

wized2 and others added 4 commits September 14, 2026 16:42
compact(null) no longer throws. Tests for null/undefined analyze,
system-only payloads, and compact(null).

Related to #2

Co-authored-by: wized2 <code@canvas.app>
Co-authored-by: royalpinto007 <royalpinto007@gmail.com>
@royalpinto007
royalpinto007 merged commit 7686637 into AgentPostmortem:main Sep 14, 2026
1 check passed
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