• Home
  • Raw
  • Download

Lines Matching refs:command

297     fn test_command(command: &str, expected_command: Command, expected_grpc_request: GrpcRequest) {  in test_command()
298 let command = NetsimArgs::parse_from(command.split_whitespace()).command; in test_command() localVariable
299 assert_eq!(command, expected_command); in test_command()
300 let request = command.get_request(); in test_command()
638 let command = Command::Beacon(Beacon::Create(BeaconCreate::Ble(BeaconCreateBle { in test_beacon_create_all_params_ble() localVariable
662 command, in test_beacon_create_all_params_ble()
694 let command = Command::Beacon(Beacon::Patch(BeaconPatch::Ble(BeaconPatchBle { in test_beacon_patch_all_params_ble() localVariable
718 command, in test_beacon_patch_all_params_ble()
744 let command = Command::Beacon(Beacon::Create(BeaconCreate::Ble(BeaconCreateBle { in test_beacon_create_scan_response() localVariable
761 command, in test_beacon_create_scan_response()
787 let command = Command::Beacon(Beacon::Patch(BeaconPatch::Ble(BeaconPatchBle { in test_beacon_patch_scan_response() localVariable
806 command, in test_beacon_patch_scan_response()
825 let command = Command::Beacon(Beacon::Create(BeaconCreate::Ble(BeaconCreateBle { in test_beacon_create_ble_tx_power() localVariable
846 command, in test_beacon_create_ble_tx_power()
861 let command = Command::Beacon(Beacon::Create(BeaconCreate::Ble(BeaconCreateBle { in test_beacon_create_default() localVariable
865 test_command("netsim-cli beacon create ble", command, GrpcRequest::CreateDevice(request)) in test_beacon_create_default()
885 let command = Command::Beacon(Beacon::Patch(BeaconPatch::Ble(BeaconPatchBle { in test_beacon_patch_interval() localVariable
902 command, in test_beacon_patch_interval()
927 let command = Command::Beacon(Beacon::Create(BeaconCreate::Ble(BeaconCreateBle { in test_beacon_create_ble_with_address() localVariable
934 command, in test_beacon_create_ble_with_address()
965 let command = Command::Beacon(Beacon::Patch(BeaconPatch::Ble(BeaconPatchBle { in test_beacon_patch_ble_with_address() localVariable
978 command, in test_beacon_patch_ble_with_address()
985 let command = String::from("netsim-cli beacon create ble --timeout -1234"); in test_beacon_negative_timeout_fails() localVariable
986 assert!(NetsimArgs::try_parse_from(command.split_whitespace()).is_err()); in test_beacon_negative_timeout_fails()
991 let command = in test_create_beacon_large_tx_power_fails() localVariable
993 assert!(NetsimArgs::try_parse_from(command.split_whitespace()).is_err()); in test_create_beacon_large_tx_power_fails()
998 let command = String::from("netsim-cli beacon create ble --advertise-mode not-a-mode"); in test_create_beacon_unknown_mode_fails() localVariable
999 assert!(NetsimArgs::try_parse_from(command.split_whitespace()).is_err()); in test_create_beacon_unknown_mode_fails()
1004 let command = String::from("netsim-cli beacon patch ble --timeout -1234"); in test_patch_beacon_negative_timeout_fails() localVariable
1005 assert!(NetsimArgs::try_parse_from(command.split_whitespace()).is_err()); in test_patch_beacon_negative_timeout_fails()
1010 let command = in test_patch_beacon_large_tx_power_fails() localVariable
1012 assert!(NetsimArgs::try_parse_from(command.split_whitespace()).is_err()); in test_patch_beacon_large_tx_power_fails()
1017 let command = String::from("netsim-cli beacon patch ble --advertise-mode not-a-mode"); in test_patch_beacon_unknown_mode_fails() localVariable
1018 assert!(NetsimArgs::try_parse_from(command.split_whitespace()).is_err()); in test_patch_beacon_unknown_mode_fails()
1023 let command = String::from("netsim-cli beacon create ble --manufacturer-data not-a-number"); in test_create_beacon_mfg_data_fails() localVariable
1024 assert!(NetsimArgs::try_parse_from(command.split_whitespace()).is_err()); in test_create_beacon_mfg_data_fails()
1029 let command = String::from("netsim-cli beacon patch ble --manufacturer-data not-a-number"); in test_patch_beacon_mfg_data_fails() localVariable
1030 assert!(NetsimArgs::try_parse_from(command.split_whitespace()).is_err()); in test_patch_beacon_mfg_data_fails()