Improve naming of Error variants in iced_test

This commit is contained in:
Héctor Ramón Jiménez 2025-08-27 06:18:23 +02:00
parent ed873514e5
commit 1c54f5e3e9
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 9 additions and 10 deletions

View file

@ -10,9 +10,9 @@ use std::sync::Arc;
pub enum Error {
/// No matching widget was found for the [`Selector`](crate::Selector).
#[error("no matching widget was found for the selector: {selector}")]
NotFound { selector: String },
SelectorNotFound { selector: String },
#[error("the matching target is not visible: {target:?}")]
NotVisible {
TargetNotVisible {
target: Arc<dyn std::fmt::Debug + Send + Sync>,
},
/// An IO operation failed.
@ -30,7 +30,7 @@ pub enum Error {
error: ice::ParseError,
},
#[error("the ice test ({file}) failed")]
IceFailed {
IceTestingFailed {
file: PathBuf,
instruction: Instruction,
},