Ejemplo n.º 1
0
def test_parse_function_operation_non_str():
    with pytest.raises(AssertionError):
        find_structs.parse_fop_type(1)
Ejemplo n.º 2
0
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) == ""
Ejemplo n.º 3
0
def test_parse_function_operation_empty_line():
    line = ""
    assert find_structs.parse_fop_type(line) == ""
Ejemplo n.º 4
0
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"