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.11.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.11.0.tar.gz.
File metadata
- Download URL: hammocking-0.11.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 |
ad7a6891b2635f41dac61fcd57ca20024e60f505d64059f28ab8c4c96b5d60a2
|
|
| MD5 |
587f1d573b5369fb83f4773861e5b83a
|
|
| BLAKE2b-256 |
b7ec19bcc90b900d9292d26cbbfcbb5467d8dbad90f85f96eaf93ec13ca5fa7c
|
File details
Details for the file hammocking-0.11.0-py3-none-any.whl.
File metadata
- Download URL: hammocking-0.11.0-py3-none-any.whl
- Upload date:
- Size: 13.0 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 |
0cb5a48131ba817b869e61e68b621c49f964e61af5405a06fa2d3bf6ddd4b222
|
|
| MD5 |
cc5d7a900b43763554cfa6c72ede45b3
|
|
| BLAKE2b-256 |
387b1d8c54e7a55cde85a0b08e59f89748b8f163d083b1e00033d42539fdfd8f
|