MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / maestro_selector_maps_text_and_state

Function maestro_selector_maps_text_and_state

packages/server/src/main.rs:7168–7182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7166
7167 #[test]
7168 fn maestro_selector_maps_text_and_state() {
7169 let yaml: YamlValue = serde_yaml::from_str(
7170 r#"
7171text: Continue.*
7172enabled: true
7173index: 1
7174"#,
7175 )
7176 .unwrap();
7177 let selector = maestro_selector(&yaml).unwrap();
7178 assert_eq!(selector["text"], "Continue.*");
7179 assert_eq!(selector["enabled"], true);
7180 assert_eq!(selector["index"], 1);
7181 assert_eq!(selector["regex"], true);
7182 }
7183
7184 #[test]
7185 fn maestro_selector_keeps_id_literals_exact_by_default() {

Callers

nothing calls this directly

Calls 1

maestro_selectorFunction · 0.85

Tested by

no test coverage detected