This is a memory manager simulator in Python.
Python3 and pip3.
(opcional) If you want, you can create a virtual environment:
python3 -m venv env
Activate virtual environment:
- Unix/macOS
source env/bin/activate
- Windows
./env\Script\activate
pip3 install -r requirements.txt
For install coverage
python3 main.py
You have 4 commands:
i. RESERVAR <nombre> <cantidad>
Represents a space reservation of <number> blocks, associated with the identifier <name>.
ii. LIBERAR <nombre>
Represents a release of the space containing the identifier <name>.
iii. MOSTRAR
To show the structure
iv. SALIR
To exit.
cd tests
coverage3 run --source=memory_manager -m unittest test_memory_manager.py
coverage3 report -m
Module | Coverage |
---|---|
Memory Manager | 87% |