Create mocks for c-code automatically
Project description
HammocKing
Automatic mocking tool for C
CI
Build
This project uses poetry. Run the following command to install it using your system's Python >=3.6 installation:
pip install poetry
To create a virtual environment for development run:
poetry install
To debug your Python code in VS Code you need to activate the virtual environment. To activate this project's virtualenv, run:
poetry shell
After that you can select the virtual env in the list of Python installations.
Run all tests:
poetry run pytest --verbose --capture=tee-sys
TODO: Somehow pytest fails when already installed in the system's python distribution. Uninstall it:
pip uninstall pytest
Concept
The basic idea of HammocKing is to use Python and libclang to process and parse sources of an item under test (IUT) for automatic creation of mockups.
Used libraries/sources/repos:
How to create and publish a pypi package
$ # Change version in setup.py to e.g. 0.5.0
$ python setup.py sdist
$ twine upload --repository-url https://test.pypi.org/legacy/dist/hammock-0.5.0.tar.gz
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hammocking-0.4.0.tar.gz.
File metadata
- Download URL: hammocking-0.4.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70b77a0e96227a55d0f9ca9548aecc3a6251ea5e12f4e79be240711b70813d7b
|
|
| MD5 |
0f5b6c4c6451c6f97f18dadc572bbc5d
|
|
| BLAKE2b-256 |
f35752282495a5bce159b2fc64d6185c8a7bf3cb5bd42f8fe92c3e051e5059b8
|
File details
Details for the file hammocking-0.4.0-py3-none-any.whl.
File metadata
- Download URL: hammocking-0.4.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05e4bffa06573dd3845bd6a1c3bdfb6f87a55a96a8f56488b6f1c33f22df159b
|
|
| MD5 |
c0ec1854fe753770be2fc504e8f52c7f
|
|
| BLAKE2b-256 |
0df8f53167e0c73f658ee6134f49e34fd23a20007b97b3b42030533a01336cf4
|