Skip to content

Make Window and Windows structs easier to test with #6106

Closed
@alice-i-cecile

Description

@alice-i-cecile

Writing tests for these types is quite challenging.

We should have:

  1. Constant constructors wherever possible.
  2. Doc tests demonstrating simple testing practices (likely using the Default struct update syntax for WindowDescriptor.
  3. A const fn new method on Windows that accepts a single Window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-TestingA change that impacts how we test Bevy or how users test their apps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions