def test_TmcFile_resolve_enums(generic_tmc_path): tmc = TmcFile(generic_tmc_path) tmc.isolate_Symbols() tmc.isolate_DataTypes() assert not tmc.all_Symbols['MAIN.dtype_samples_enum'].is_enum assert not tmc.all_SubItems['DUT_CONTAINER']['dtype_enum'].is_enum tmc.resolve_enums() assert tmc.all_Symbols['MAIN.dtype_samples_enum'].is_enum assert tmc.all_SubItems['DUT_CONTAINER']['dtype_enum'].is_enum
def test_TmcFile_isolate_Symbols(generic_tmc_path): tmc = TmcFile(generic_tmc_path) tmc.isolate_Symbols() assert "MAIN.ulimit" in tmc.all_Symbols assert "MAIN.count" in tmc.all_Symbols assert "MAIN.NEW_VAR" in tmc.all_Symbols assert "MAIN.test_iterator" in tmc.all_Symbols assert "Constants.RuntimeVersion" in tmc.all_Symbols assert len(tmc.all_Symbols) == 25