def test(): objects = static_check._getObjectsFromText(it.text) it.assertItemsEqual([{ 'checker': 'HDL Code Checker/static', 'column': 9, 'error_message': "Declaration of library 'work' can be omitted", 'error_number': '0', 'error_subtype': 'Style', 'error_type': 'W', 'filename': None, 'line_number': 4 }], static_check._getMiscChecks(objects))
def test(): text = [ 'entity foo is', ' port (', ' clk_in_a : in std_logic;', ' clk_out_a : out std_logic;', '', ' clk_in_b : in std_logic;', ' clk_out_b : out std_logic', '', ' );', 'end foo;', ] objects = static_check._getObjectsFromText(text) it.assertItemsEqual([], static_check._getMiscChecks(objects))