maid_runner.BaseValidator

class maid_runner.BaseValidator

Abstract base for language-specific code validators.

__init__()

Methods

__init__()

can_validate(file_path)

collect_behavioral_artifacts(source, file_path)

Collect artifact REFERENCES from source code (test files).

collect_implementation_artifacts(source, ...)

Collect artifact DEFINITIONS from source code.

generate_snapshot(source, file_path)

generate_test_stub(artifacts, file_path)

Generate test stub code for the given artifacts.

get_test_function_bodies(source, file_path)

Return a mapping of test_function name -> body source text.

module_path(file_path, project_root)

Return the language-specific module identity for a source file.

resolve_reexport(module, name, project_root)

Resolve a one-level barrel re-export of name from module.

supported_extensions()

File extensions this validator handles (e.g. ('.py',)).