MCPcopy Create free account
hub / github.com/bloomberg/pystack / test_get_base_map_path_not_existing

Function test_get_base_map_path_not_existing

tests/unit/test_maps.py:1137–1166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1135
1136
1137def test_get_base_map_path_not_existing():
1138 # GIVEN
1139 maps = [
1140 VirtualMap(
1141 start=140728765599744,
1142 end=140728765603840,
1143 filesize=4096,
1144 offset=0,
1145 device="00:00",
1146 flags="r-xp",
1147 inode=0,
1148 path=None,
1149 ),
1150 VirtualMap(
1151 start=18446744073699065856,
1152 end=18446744073699069952,
1153 filesize=4096,
1154 offset=0,
1155 device="00:00",
1156 flags="--xp",
1157 inode=0,
1158 path=None,
1159 ),
1160 ]
1161
1162 # WHEN
1163 base_map = _get_base_map(maps)
1164
1165 # THEN
1166 assert base_map == maps[0]
1167
1168
1169def test_get_bss_base_map_no_path():

Callers

nothing calls this directly

Calls 2

VirtualMapClass · 0.90
_get_base_mapFunction · 0.90

Tested by

no test coverage detected