()
| 15 | |
| 16 | |
| 17 | def test_virtual_map(): |
| 18 | # GIVEN |
| 19 | |
| 20 | map = VirtualMap( |
| 21 | start=0, |
| 22 | end=10, |
| 23 | offset=1234, |
| 24 | device="device", |
| 25 | flags="xrwp", |
| 26 | inode=42, |
| 27 | path=None, |
| 28 | filesize=10, |
| 29 | ) |
| 30 | |
| 31 | # WHEN / THEN |
| 32 | |
| 33 | assert map.contains(5) |
| 34 | assert not map.contains(15) |
| 35 | assert map.is_private() |
| 36 | assert map.is_executable() |
| 37 | assert map.is_readable() |
| 38 | assert map.is_writable() |
| 39 | |
| 40 | |
| 41 | def test_simple_maps_no_such_pid(): |
nothing calls this directly
no test coverage detected