Create mocks for c-code automatically
Project description
Hammocking
Automatic mocking tool for C
Installation and Building
On Windows
Install Dependencies
.\build.ps1 -install
Build
.\build.ps1
On Linux/macOS
Quick Start
# Using build script
./build.sh # Normal build
./build.sh --clean # Clean build
./build.sh --install # Install only
Prerequisites
- Python 3.10+ (Python 3.13 recommended)
- Poetry (will be auto-installed)
- For running integration tests: clang/llvm, cmake, ninja-build
What the Build Does
- Pre-Commit checks and linting
- Execution of all tests
- Building documentation
Using DevPod (Containerized Development)
You can use DevPod to spin up a fully configured development container.
Prerequisites
Setup
# Install DevPod CLI
curl -L -o devpod "https://github.com/loft-sh/devpod/releases/latest/download/devpod-linux-amd64" \
&& sudo install -c -m 0755 devpod /usr/local/bin \
&& rm -f devpod
# Add and select the Docker provider (use Podman or Docker)
devpod provider add docker --option DOCKER_PATH=$(which podman)
devpod provider use docker
# Start the development container
devpod up .
The container comes pre-configured with Python 3.13, Poetry, clang/llvm, cmake, and ninja-build.
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
hammocking-0.12.0.tar.gz
(14.2 kB
view details)
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.12.0.tar.gz.
File metadata
- Download URL: hammocking-0.12.0.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8868259acdda51f348c076e0dffc5be7d2f3c6dc3211cb9a15b21142aef11994
|
|
| MD5 |
227ee9b8e4253d6dd4d2109ba41afc1d
|
|
| BLAKE2b-256 |
7369b06ad2e4189c88d3ed34bdd581a2dbea56310064379359a6a852234c9a74
|
File details
Details for the file hammocking-0.12.0-py3-none-any.whl.
File metadata
- Download URL: hammocking-0.12.0-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02e9b3a5a9959325628706bc0ee9966fc0dd6838b429caac323423a6e76cbc92
|
|
| MD5 |
c8402bb35f565f9dd39511a5ae6c6f9e
|
|
| BLAKE2b-256 |
02d925a6f5ffd2010d1912f7124329b0b7404911d46a5e7e4825ec7393566f71
|