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

Function test_maps_for_binary_no_binary_map

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

Source from the content-addressed store, hash-verified

828
829
830def test_maps_for_binary_no_binary_map():
831 # GIVEN
832
833 python = VirtualMap(
834 start=140728765599744,
835 end=140728765603840,
836 filesize=4096,
837 offset=0,
838 device="00:00",
839 flags="r-xp",
840 inode=0,
841 path=Path("the_executable"),
842 )
843
844 maps = [
845 python,
846 VirtualMap(
847 start=18446744073699065856,
848 end=18446744073699069952,
849 filesize=4096,
850 offset=0,
851 device="00:00",
852 flags="--xp",
853 inode=0,
854 path=Path("/usr/lib/libc-2.31.so"),
855 ),
856 ]
857
858 # WHEN / THEN
859
860 with pytest.raises(MissingExecutableMaps):
861 parse_maps_file_for_binary(Path("another_executable"), maps)
862
863
864def test_maps_for_binary_no_executable_segment():

Callers

nothing calls this directly

Calls 2

VirtualMapClass · 0.90

Tested by

no test coverage detected