garak.generators.test
Test generators
These give simple system responses, intended for testing.
- class garak.generators.test.Blank(name='', config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)
Bases:
Generator
This generator always returns the empty string.
- generator_family_name = 'Test'
- name = 'Blank'
- supports_multiple_generations = True
- class garak.generators.test.Lipsum(name='', config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)
Bases:
Generator
Lorem Ipsum generator, so we can get non-zero outputs that vary
- generator_family_name = 'Test'
- name = 'Lorem Ipsum'
- supports_multiple_generations = False
- class garak.generators.test.Repeat(name='', config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)
Bases:
Generator
This generator returns the input that was posed to it.
- generator_family_name = 'Test'
- name = 'Repeat'
- supports_multiple_generations = True
- class garak.generators.test.Single(name='', config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)
Bases:
Generator
This generator returns the a fixed string and does not support multiple generations.
- generator_family_name = 'Test'
- name = 'Single'
- supports_multiple_generations = False
- test_generation_string = 'ELIM'