Skip to main content

Create mocks for c-code automatically

Project description

HammocKing

Automatic mocking tool for C

CI

Ubuntu

Windows

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hammocking-0.4.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hammocking-0.4.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file hammocking-0.4.1.tar.gz.

File metadata

  • Download URL: hammocking-0.4.1.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

Hashes for hammocking-0.4.1.tar.gz
Algorithm Hash digest
SHA256 49b9da4563140bd46f4956f99d4d5af09cbf6bda11197e83cca660a262147884
MD5 24c9523f50ca7f3cb3fb2256b29f62d6
BLAKE2b-256 b8c869a2653005cdf53b07f017cc0f1b21bee9b94355d9b21202fec1e9aee684

See more details on using hashes here.

File details

Details for the file hammocking-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: hammocking-0.4.1-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

Hashes for hammocking-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f6e9a10534aace1a2f565972bb6e463adcef1b1c0cd26c5426d49c7bea119114
MD5 8eea2db797152dba8fb14d4d701a866c
BLAKE2b-256 94ef1b3ef3afaa49ea6abdd80f1de79094b91981f54d898186ec5cd921d001d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page