Skip to content

Commit 8ca1cfc

Browse files
committed
Rename to drmock-generator
1 parent 2f7ce5c commit 8ca1cfc

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

.reuse/dep5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2-
Upstream-Name: drmock-gen
2+
Upstream-Name: drmock-generator
33
Upstream-Contact: Malte Kliemann <[email protected]>
44
Source:
55

CONTRIBUTUNG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ SPDX-License-Identifier: GPL-3.0-or-later
55
-->
66

77

8-
# Contributing to `drmock-gen`
8+
# Contributing to `drmock-generator`
99

10-
You are cordially invited to contribute to `drmock-gen` by reporting and
10+
You are cordially invited to contribute to `drmock-generator` by reporting and
1111
fixing bugs, and by proposing and implementing new features.
1212

1313
To report bugs or request a feature, raise an issue in this repository.
@@ -25,5 +25,5 @@ copyright. See [reuse.software](reuse.software) for details.
2525

2626
### Code style
2727

28-
When contributing code, please follow the style of existing `drmock-gen`
28+
When contributing code, please follow the style of existing `drmock-generator`
2929
source code.

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ SPDX-License-Identifier: GPL-3.0-or-later
66

77
# drmock generator
88

9-
![unix](https://github.com/DrCpp/drmock-gen/actions/workflows/unix.yml/badge.svg)
10-
![windows](https://github.com/DrCpp/drmock-gen/actions/workflows/windows.yml/badge.svg)
11-
![macOS](https://github.com/DrCpp/drmock-gen/actions/workflows/macos.yml/badge.svg)
9+
![unix](https://github.com/DrCpp/drmock-generator/actions/workflows/unix.yml/badge.svg)
10+
![windows](https://github.com/DrCpp/drmock-generator/actions/workflows/windows.yml/badge.svg)
11+
![macOS](https://github.com/DrCpp/drmock-generator/actions/workflows/macos.yml/badge.svg)
1212

13-
`drmock-gen` is a component of the C++ testing/mocking framework
13+
`drmock-generator` is a component of the C++ testing/mocking framework
1414
[DrMock](https://github.com/DrCpp/DrMock). It takes a C++ `.h` file as
1515
input and generates the files for a mock implementation of the interface
1616
specified in the original header file, which the DrMock framework then
1717
consumes.
1818

19-
The framework contains a CMake integration of `drmock-gen`. Unless
19+
The framework contains a CMake integration of `drmock-generator`. Unless
2020
you're using a different build manager, you will not need to call
21-
`drmock-gen` directly. If you're interested in writing integrations for
21+
`drmock-generator` directly. If you're interested in writing integrations for
2222
other build managers, feel free to contact us for support!
2323

2424

@@ -39,7 +39,7 @@ See [chocolatey.org](https://chocolatey.org) for details. On macOS,
3939

4040
## Using
4141

42-
Type `drmock-gen --help` for instructions. You must pass the path to the
42+
Type `drmock-generator --help` for instructions. You must pass the path to the
4343
`libclang.dll/.so/.dylib` in one of two ways:
4444

4545
- Set the environment variable `CLANG_LIBRARY_FILE` to the absolute path
@@ -62,7 +62,7 @@ To run all tests, call `make`. The environment variable
6262
`CLANG_LIBRARY_FILE` must be set in order to test the `translator`
6363
module.
6464

65-
Due to the irreducible complexity of the output of `drmock-gen`, any
65+
Due to the irreducible complexity of the output of `drmock-generator`, any
6666
significant changes *should* be tested against the latest version of
6767
test suite of the C++ framework, as well.
6868

@@ -74,6 +74,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md).
7474

7575
## Developer notes
7676

77-
Details on the interface implemented by output code of `drmock-gen` is
77+
Details on the interface implemented by output code of `drmock-generator` is
7878
compliant with the specification of the C++ framework. See the
7979
documentation of the main framework for details.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
package_dir={'': 'src'},
2020
entry_points={
2121
'console_scripts': [
22-
'drmock-gen = drmock.commandline:main'
22+
'drmock-generator = drmock.commandline:main'
2323
]
2424
},
2525
include_package_data=True,

src/drmock/commandline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def parse_args(args: list[str]) -> argparse.Namespace:
7272
return args
7373

7474

75-
# This method is the entry point of the drmock-gen script.
75+
# This method is the entry point of the drmock-generator script.
7676
def main() -> None:
7777
try:
7878
args = parse_args(sys.argv[1:])
@@ -82,5 +82,5 @@ def main() -> None:
8282
args.flags[0] = args.flags[0].lstrip()
8383
generator.main(args)
8484
except utils.DrMockRuntimeError as e: # FIXME _Don't_ print traceback on clang errors, etc.!
85-
print(f'drmock-gen: error: {e}\n', file=sys.stderr)
85+
print(f'drmock-generator: error: {e}\n', file=sys.stderr)
8686
sys.exit(1)

tests/test_commandline.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
def test_example(script_runner):
1616
with tempfile.TemporaryDirectory() as tmpdir:
1717
path = os.path.join(tmpdir, 'example_mock.h')
18-
ret = script_runner.run('drmock-gen', '--input-class', 'Derived', '--output-class', 'DerivedMock', 'resources/example.h', str(path), '-f --std=c++17')
18+
ret = script_runner.run('drmock-generator', '--input-class', 'Derived', '--output-class', 'DerivedMock', 'resources/example.h', str(path), '-f --std=c++17')
1919
assert ret.success
2020

2121

@@ -24,14 +24,14 @@ def test_success(monkeypatch, mocker, script_runner):
2424
args = mocker.Mock(flags=flags)
2525
monkeypatch.setattr(commandline, 'parse_args', mocker.Mock(return_value=args))
2626
monkeypatch.setattr(generator, 'main', mocker.Mock())
27-
ret = script_runner.run('drmock-gen')
27+
ret = script_runner.run('drmock-generator')
2828
assert ret.success
2929
assert generator.main.called_once_with(args, args.flags)
3030

3131

3232
def test_parser_fails(monkeypatch, mocker, script_runner):
3333
# Cause a parser error by not providing required args.
34-
ret = script_runner.run('drmock-gen')
34+
ret = script_runner.run('drmock-generator')
3535
assert not ret.success
3636
assert ret.returncode == 2
3737

@@ -41,10 +41,10 @@ def test_failure(monkeypatch, mocker, script_runner):
4141
args = mocker.Mock(flags=flags)
4242
monkeypatch.setattr(commandline, 'parse_args', mocker.Mock(return_value=args))
4343
monkeypatch.setattr(generator, 'main', mocker.Mock(side_effect=utils.DrMockRuntimeError()))
44-
ret = script_runner.run('drmock-gen')
44+
ret = script_runner.run('drmock-generator')
4545
assert not ret.success
4646
assert ret.returncode == 1
47-
assert ret.stderr.startswith('drmock-gen: error:')
47+
assert ret.stderr.startswith('drmock-generator: error:')
4848
assert generator.main.called_once_with(args, args.flags)
4949

5050

@@ -54,7 +54,7 @@ def test_panic(error, monkeypatch, mocker, script_runner):
5454
args = mocker.Mock(flags=flags)
5555
monkeypatch.setattr(commandline, 'parse_args', mocker.Mock(return_value=args))
5656
monkeypatch.setattr(generator, 'main', mocker.Mock(side_effect=error))
57-
ret = script_runner.run('drmock-gen', print_result=False)
57+
ret = script_runner.run('drmock-generator', print_result=False)
5858
assert not ret.success
5959
assert ret.stderr.startswith('Traceback')
6060
assert generator.main.called_once_with(args)

0 commit comments

Comments
 (0)