def test_parse_function_operation_non_str(): with pytest.raises(AssertionError): find_structs.parse_fop_type(1)
def test_parse_function_operation_empty(): line = '= <ref xmlns:xsi="" refid="at91rm9200__wdt_8c_1a0f82b8fa55a637eab5b42397bb13ae6c" kindref="member"></ref>' assert find_structs.parse_fop_type(line) == ""
def test_parse_function_operation_empty_line(): line = "" assert find_structs.parse_fop_type(line) == ""
def test_parse_function_operation_too_close(): line = '.unlocked_ioctl= <ref xmlns:xsi="" refid="at91rm9200__wdt_8c_1a0f82b8fa55a637eab5b42397bb13ae6c" kindref="member">at91_wdt_ioctl</ref>,' assert find_structs.parse_fop_type(line) == "unlocked_ioctl"