本文整理汇总了Python中setools.IomemconQuery类的典型用法代码示例。如果您正苦于以下问题:Python IomemconQuery类的具体用法?Python IomemconQuery怎么用?Python IomemconQuery使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了IomemconQuery类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: test_044_range_proper_subset4
def test_044_range_proper_subset4(self):
"""Iomemcon query with context range proper subset match (equal high only)"""
q = IomemconQuery(self.p,
range_="s4:c1,c2 - s4:c1.c3", range_subset=True, range_proper=True)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(44, 44)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:7,代码来源:iomemconquery.py
示例2: test_058_single_proper_superset_edge3
def test_058_single_proper_superset_edge3(self):
"""Iomemcon query with single mem addr proper superset, high equal edge case"""
q = IomemconQuery(
self.p, addr=(50800, 50801), addr_superset=True, addr_proper=True)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(50801, 50801)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:7,代码来源:iomemconquery.py
示例3: test_059_range_proper_superset_edge3
def test_059_range_proper_superset_edge3(self):
"""Iomemcon query with range proper superset, equal low mem addr edge case"""
q = IomemconQuery(
self.p, addr=(50901, 50911), addr_superset=True, addr_proper=True)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(50901, 50910)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:7,代码来源:iomemconquery.py
示例4: test_055_range_proper_subset_edge3
def test_055_range_proper_subset_edge3(self):
"""Iomemcon query with range proper subset, high equal edge case"""
q = IomemconQuery(
self.p, addr=(50501, 50510), addr_subset=True, addr_proper=True)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(50500, 50510)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:7,代码来源:iomemconquery.py
示例5: test_054_single_proper_subset
def test_054_single_proper_subset(self):
"""Iomemcon query with single mem addr proper subset"""
q = IomemconQuery(
self.p, addr=(50400, 50400), addr_subset=True, addr_proper=True)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:7,代码来源:iomemconquery.py
示例6: test_000_unset
def test_000_unset(self):
"""Iomemcon query with no criteria"""
# query with no parameters gets all addr.
rules = sorted(self.p.iomemcons())
q = IomemconQuery(self.p)
q_rules = sorted(q.results())
self.assertListEqual(rules, q_rules)
开发者ID:GitForNeo,项目名称:setools,代码行数:9,代码来源:iomemconquery.py
示例7: test_062_range_overlap_high_half
def test_062_range_overlap_high_half(self):
"""Iomemcon query with range overlap, high half match"""
q = IomemconQuery(self.p, addr=(60205, 60211), addr_overlap=True)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(60200, 60210)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:6,代码来源:iomemconquery.py
示例8: test_061_range_overlap_low_half
def test_061_range_overlap_low_half(self):
"""Iomemcon query with range overlap, low half match"""
q = IomemconQuery(self.p, addr=(60100, 60105), addr_overlap=True)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(60101, 60110)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:6,代码来源:iomemconquery.py
示例9: test_060_single_overlap_edge3
def test_060_single_overlap_edge3(self):
"""Iomemcon query with single overlap, range match proper superset"""
q = IomemconQuery(self.p, addr=(60000, 60002), addr_overlap=True)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(60001, 60001)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:6,代码来源:iomemconquery.py
示例10: test_010_user_exact
def test_010_user_exact(self):
"""Iomemcon query with context user exact match"""
q = IomemconQuery(self.p, user="user10", user_regex=False)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(10, 10)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:6,代码来源:iomemconquery.py
示例11: test_050_single_equal
def test_050_single_equal(self):
"""Iomemcon query with single mem addr exact match"""
q = IomemconQuery(self.p, addr=(50, 50))
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(50, 50)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:6,代码来源:iomemconquery.py
示例12: test_020_role_exact
def test_020_role_exact(self):
"""Iomemcon query with context role exact match"""
q = IomemconQuery(self.p, role="role20_r", role_regex=False)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(20, 20)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:6,代码来源:iomemconquery.py
示例13: test_065_range_overlap_superset
def test_065_range_overlap_superset(self):
"""Iomemcon query with range overlap, superset match"""
q = IomemconQuery(self.p, addr=(60500, 60510), addr_overlap=True)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(60501, 60509)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:6,代码来源:iomemconquery.py
示例14: test_057_range_superset_edge1
def test_057_range_superset_edge1(self):
"""Iomemcon query with range superset, equal edge case"""
q = IomemconQuery(self.p, addr=(50700, 50710), addr_superset=True)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(50700, 50710)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:6,代码来源:iomemconquery.py
示例15: test_056_single_superset_edge1
def test_056_single_superset_edge1(self):
"""Iomemcon query with single mem addr superset, equal edge case"""
q = IomemconQuery(self.p, addr=(50601, 50601), addr_superset=True)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(50601, 50601)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:6,代码来源:iomemconquery.py
示例16: test_053_range_subset
def test_053_range_subset(self):
"""Iomemcon query with range subset"""
q = IomemconQuery(self.p, addr=(50301, 50309), addr_subset=True)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(50300, 50310)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:6,代码来源:iomemconquery.py
示例17: test_051_range_equal
def test_051_range_equal(self):
"""Iomemcon query with mem addr range exact match"""
q = IomemconQuery(self.p, addr=(50100, 50110))
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(50100, 50110)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:6,代码来源:iomemconquery.py
示例18: test_063_range_overlap_middle
def test_063_range_overlap_middle(self):
"""Iomemcon query with range overlap, middle match"""
q = IomemconQuery(self.p, addr=(60305, 60308), addr_overlap=True)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(60300, 60310)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:6,代码来源:iomemconquery.py
示例19: test_030_type_exact
def test_030_type_exact(self):
"""Iomemcon query with context type exact match"""
q = IomemconQuery(self.p, type_="type30", type_regex=False)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(30, 30)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:6,代码来源:iomemconquery.py
示例20: test_064_range_overlap_equal
def test_064_range_overlap_equal(self):
"""Iomemcon query with range overlap, equal match"""
q = IomemconQuery(self.p, addr=(60400, 60410), addr_overlap=True)
addr = sorted(p.addr for p in q.results())
self.assertListEqual([(60400, 60410)], addr)
开发者ID:GitForNeo,项目名称:setools,代码行数:6,代码来源:iomemconquery.py
注:本文中的setools.IomemconQuery类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论