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

Function tap_agent_ref_maps_to_element_index

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

Source from the content-addressed store, hash-verified

6840
6841 #[test]
6842 fn tap_agent_ref_maps_to_element_index() {
6843 let parsed = Cli::try_parse_from(["simdeck", "tap", "@e3"]).unwrap();
6844 let Command::Tap { args, .. } = parsed.command else {
6845 panic!("expected tap command");
6846 };
6847 let target = parse_tap_command_args(args, None, None, None, None).unwrap();
6848
6849 assert_eq!(
6850 target.selector,
6851 ElementSelector {
6852 index: Some(2),
6853 ..Default::default()
6854 }
6855 );
6856 assert_eq!(target.udid, None);
6857 }
6858
6859 #[test]
6860 fn tap_accepts_post_action_expectation_flags() {

Callers

nothing calls this directly

Calls 1

parse_tap_command_argsFunction · 0.85

Tested by

no test coverage detected