Skip to content

Add unit tests for 24h volume helper confirming rolling window boundary behaviour #627

Description

@Chucks1093

Summary

The 24h volume helper uses a rolling time window but its boundary behaviour — trades exactly at the 24h mark — has no unit test coverage. Tests should confirm trades at the boundary are included and trades one millisecond outside are excluded.

Scope

  • Test a trade timestamped exactly 24 hours ago is included in the volume
  • Test a trade timestamped 24 hours and 1 millisecond ago is excluded
  • Test a trade timestamped 1 second ago is included
  • Test the helper returns 0 when all trades fall outside the window

Acceptance Criteria

  • Trade at exactly 24h boundary included
  • Trade at 24h + 1ms excluded
  • Recent trade included
  • All-outside-window case returns 0

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions