Skip to content

api: add test — GET /assets handles asset id 0 and u64::MAX without panicking #190

Description

@valoryyaa-byte

Type: Test coverage

Location: api/src/routes/assets.rs

What's missing
Boundary ids should return 404 cleanly rather than trapping or overflowing.

How to add it
Use the existing routes::test_support::state_with helper to build an
AppState from a fixed Snapshot, call the handler directly, and assert on
the serialized body. Follow the patterns already in api/tests/api_responses.rs.

Activity

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions