Searched refs:parse_battery_options (Results 1 – 1 of 1) sorted by relevance
652 fn parse_battery_options(s: Option<&str>) -> argument::Result<BatteryType> { in parse_battery_options() function1640 let params = parse_battery_options(value)?; in set_argument()2891 parse_battery_options(Some("type=goldfish")).expect("parse should have succeded"); in parse_battery_vaild()2896 parse_battery_options(None).expect("parse should have succeded"); in parse_battery_vaild_no_type()2901 parse_battery_options(Some("tyep=goldfish")).expect_err("parse should have failed"); in parse_battery_invaild_parameter()2906 parse_battery_options(Some("type=xxx")).expect_err("parse should have failed"); in parse_battery_invaild_type_value()