autogtest
Autogtest is a CLI tool for auto-generating Google Mock test code from C++ header files.
- Github repository: https://github.com/10-neon/autogtest/
- Documentation https://10-neon.github.io/autogtest/
Features
- Automatically generates Google Mock classes from C++ abstract interfaces
- Supports both single file and batch processing modes
- Customizable Jinja2 templates for mock generation
- Handles nested namespaces and nested class
Installation
pip install autogtest
Basic Usage
Generate mock for a single header:
autogtest path/to/header.h --mock output/mock.h --include base/include
Batch process a directory:
autogtest path/to/headers/ --mock output/mocks/ --include base/include
Command Options
autogtest [HEADER]
--mock TEXT Output path (file or directory)
--include TEXT Base include directory
--template TEXT Custom template path
Metadata
Release files for autogtest 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| autogtest-0.0.3.tar.gz | 57.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| autogtest-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 63.2 kB
Release files / autogtest-0.0.3.tar.gz
| Download URL | autogtest-0.0.3.tar.gz |
|---|---|
| Size | 57.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5d80166e7444351373e32b386651b348718e637aa3b78cb684976b0b481ecf4
|
|
BLAKE2b-256 checksum How to use checksums |
3c9ada56ef35749cf270ac1d477efaed6a78e0f9889674fdb3a6260d7a33ccbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|
Release files / autogtest-0.0.3-py3-none-any.whl
| Download URL | autogtest-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e49af21ffdfe940e6f93b5a648e8fc68b12fa39be766e31933df197f42fe15e4
|
|
BLAKE2b-256 checksum How to use checksums |
302557630c807e3d0d8c73b4ad4789dea1b7984b9e0b10570db2e0e52dfc0bd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|