Skip to main content

autogtest

Release Build status Commit activity License

Autogtest is a CLI tool for auto-generating Google Mock test code from C++ header files.

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)

Source distribution for autogtest 0.0.3
File Size Uploaded
autogtest-0.0.3.tar.gz 57.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autogtest 0.0.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page