Expand description
Test utilities for the wgpu repository.
Re-exports§
pub use self::image::ComparisonType;
Modules§
- config 🔒
- expectations 🔒
- image
- Image comparison utilities
- init 🔒
- isolation 🔒
- native
- Infrastructure for the native,
cargo-nextest
based harness. - params 🔒
- poll 🔒
- report 🔒
- run 🔒
Macros§
- gpu_
test_ main - Adds the necessary main function for our gpu test harness.
Structs§
- Failure
Application Reasons - Reason why a test matches a given failure case.
- Failure
Case - Conditions under which a test should fail or be skipped.
- Failure
Reason - Reason why a test is expected to fail.
- GpuTest
Configuration - Configuration for a GPU test.
- Test
Parameters - This information determines if a test should run.
- Testing
Context - Parameters and resources handed to the test function.
Enums§
Functions§
- did_
fail - Returns true if the provided callback fails validation.
- did_
fill_ 🔒error_ scope - did_oom
- Returns true if the provided callback encounters an out-of-memory error.
- execute_
test - Execute the given test configuration with the given adapter report.
- fail
- Run some code in an error scope and assert that validation fails.
- fail_if
- Run some code in an error scope and assert that validation succeeds or fails depending on the
provided
should_fail
boolean. - initialize_
adapter - Initialize a wgpu adapter, using the given adapter report to match the adapter.
- initialize_
device - Initialize a wgpu device from a given adapter.
- initialize_
instance - Initialize a wgpu instance with the options from the environment.
- valid
- Run some code in an error scope and assert that validation succeeds.
Type Aliases§
Attribute Macros§
- gpu_
test - Creates a test that will run on all gpus on a given system.