Skip to content

Market + search tests.#555

Draft
ice-myles wants to merge 4 commits into
masterfrom
feature/market-and-search-tests
Draft

Market + search tests.#555
ice-myles wants to merge 4 commits into
masterfrom
feature/market-and-search-tests

Conversation

@ice-myles

Copy link
Copy Markdown
Contributor

No description provided.

@ice-myles ice-myles self-assigned this Feb 10, 2026
@ice-myles ice-myles requested a review from a team as a code owner February 10, 2026 20:55
@ice-myles ice-myles added the enhancement New feature or request label Feb 10, 2026
@ice-dionysos ice-dionysos requested a review from Copilot February 11, 2026 08:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds coverage around market-related endpoints (trading stats, OHLCV history, subscriptions, trade registration) and community-token search behavior, plus updates a shared test helper so token lookup strings include the contract address (matching production lookup composition).

Changes:

  • Add market_test.go covering GetTradingStats, GetOHLVCHistory, SubscribeTradingStats, SubscribeOHLVC, and registerTrade.
  • Add community_tokens_search_test.go covering keyword search across username/display/ticker/contract address and pagination/case-insensitivity.
  • Update helperInsertTestToken lookup composition to include contractAddress to support contract-address search.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
token-analytics/market_test.go New end-to-end-ish tests for QuestDB-backed market stats, OHLCV, subscriptions, and trade registration.
token-analytics/community_tokens_search_test.go New tests for community token keyword search behavior and pagination.
token-analytics/community_tokens_by_external_addresses_test.go Adjust test token lookup fixture to include contract address for realistic search matching.

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

Comment thread token-analytics/market_test.go
Comment thread token-analytics/community_tokens_search_test.go Outdated
Comment thread token-analytics/market_test.go Outdated
Comment thread token-analytics/market_test.go
Comment thread token-analytics/market_test.go Outdated
@ice-myles ice-myles force-pushed the feature/market-and-search-tests branch from f715ddf to 116c44b Compare February 11, 2026 09:41
@ice-myles ice-myles enabled auto-merge (squash) February 11, 2026 09:44
@ice-myles ice-myles force-pushed the feature/market-and-search-tests branch from 1ae03cd to b7066f3 Compare February 11, 2026 10:03
@ice-myles ice-myles marked this pull request as draft February 11, 2026 10:27
auto-merge was automatically disabled February 11, 2026 10:27

Pull request was converted to draft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants