Introduce Ice format and save test metadata

This commit is contained in:
Héctor Ramón Jiménez 2025-08-15 21:22:41 +02:00
parent 28a4c53f43
commit f9755b0b7a
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
6 changed files with 215 additions and 43 deletions

View file

@ -7,7 +7,7 @@ use crate::simulator;
use std::fmt;
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
pub enum Instruction {
Interact(Interaction),
Expect(Expectation),
@ -28,7 +28,7 @@ impl fmt::Display for Instruction {
}
}
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
pub enum Interaction {
Mouse(Mouse),
Keyboard(Keyboard),
@ -239,7 +239,7 @@ impl fmt::Display for Interaction {
}
}
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
pub enum Mouse {
Move(Point),
Press {
@ -275,7 +275,7 @@ impl fmt::Display for Mouse {
}
}
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
pub enum Keyboard {
Press(Key),
Release(Key),
@ -357,7 +357,7 @@ mod format {
}
}
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
pub enum Expectation {
Presence(Selector),
}