SIGN IN SIGN UP
bevyengine / bevy UNCLAIMED

A refreshingly simple data-driven game engine built in Rust

0 0 59 Rust

Add more reflection tests for `Handle` (#24115)

## Objective

Build on #24048 to improve test coverage for `Handle` reflection, and
also repro #24111.

## Solution

Add various tests. Includes a test for valid cases of `from_reflect` and
`try_apply` - this is relevant since `from_reflect` now has a custom
implementation.

I've snuck in a few cleanups too:

- Avoid multiple tests repeating the same imports.
- Fix an accidentally duplicated comment.

## Testing

```sh
cargo test -p bevy_asset
```

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
G
Greeble committed
025c4f1a7cf3b9214f26a9e922cded3193b68a6b
Parent: 9dfc7a6
Committed by GitHub <noreply@github.com> on 5/21/2026, 9:47:21 AM