Conghao97's picture tcftrees's picture
ProgramGen release
d086025
Raw History Blame Contribute Delete
22.7 kB
{
"passed_ptp": [
"tests.test_cache::test_store_retrieve",
"tests.test_cache::test_missing_key_error",
"tests.test_cache::test_clear",
"tests.test_cache::test_culling",
"tests.test_patch::test_patch",
"tests.test_patch::test_mc_patchface",
"tests.test_patch::test_patch_simple_no_newline",
"tests.test_patch::test_patch_invalid",
"tests.test_patch::test_patch_invalid_hunk",
"tests.test_patch::test_patch_invalid_hunk_2",
"tests.test_patch::test_patch_twice",
"tests.test_patch::test_patch_mutable_default_arg",
"tests.test_patch::test_patch_instancemethod",
"tests.test_patch::test_patch_instancemethod_freevars",
"tests.test_patch::test_patch_init_module_level",
"tests.test_patch::test_patch_recursive_module_level",
"tests.test_patch::test_patch_init_super_new",
"tests.test_patch::test_patch_freevars",
"tests.test_patch::test_patch_freevars_order",
"tests.test_patch::test_patch_freevars_remove",
"tests.test_patch::test_patch_freevars_nested",
"tests.test_patch::test_patch_freevars_re_close",
"tests.test_patch::test_patch_instancemethod_twice",
"tests.test_patch::test_patch_instancemethod_mangled",
"tests.test_patch::test_patch_instancemethod_mangled_freevars",
"tests.test_patch::test_patch_instancemethod_mangled_tabs",
"tests.test_patch::test_patch_init",
"tests.test_patch::test_patch_init_change_arg",
"tests.test_patch::test_patch_classmethod",
"tests.test_patch::test_patch_classmethod_twice",
"tests.test_patch::test_patch_staticmethod",
"tests.test_patch::test_patch_staticmethod_twice",
"tests.test_patch::test_patch_future_python",
"tests.test_patch::test_patch_future_instancemethod",
"tests.test_patch::test_patch_nonlocal_fails",
"tests.test_patch::test_patch_by_path",
"tests.test_patch::test_patch_by_path_already_imported",
"tests.test_patch_then_unpatch::test_patch_unpatch",
"tests.test_replace::test_replace",
"tests.test_replace::test_replace_only_cares_about_ast",
"tests.test_replace::test_replace_twice",
"tests.test_replace::test_replace_mutable_default_arg",
"tests.test_replace::test_replace_instancemethod",
"tests.test_replace::test_replace_unexpected_source",
"tests.test_replace::test_replace_no_expected_source",
"tests.test_temp_patch::test_context_manager",
"tests.test_temp_patch::test_decorator",
"tests.test_temp_patch::test_patch_by_path",
"tests.test_unpatch::test_unpatch",
"tests.test_unpatch::test_unpatch_invalid_unreversed",
"tests.test_unpatch::test_unpatch_invalid_hunk"
],
"test_files": [
"tests/__init__.py",
"tests/conftest.py",
"tests/test_cache.py",
"tests/test_patch.py",
"tests/test_patch_then_unpatch.py",
"tests/test_replace.py",
"tests/test_temp_patch.py",
"tests/test_unpatch.py"
],
"test_command": [
"python3",
"-m",
"pytest",
"-vv",
"--continue-on-collection-errors",
"-o",
"addopts=",
"tests/test_cache.py",
"tests/test_patch.py",
"tests/test_patch_then_unpatch.py",
"tests/test_replace.py",
"tests/test_temp_patch.py",
"tests/test_unpatch.py"
],
"test_payload_contract": {
"schema_version": "programgen.test-payload-contract.v1",
"test_files": [
"tests/__init__.py",
"tests/conftest.py",
"tests/test_cache.py",
"tests/test_patch.py",
"tests/test_patch_then_unpatch.py",
"tests/test_replace.py",
"tests/test_temp_patch.py",
"tests/test_unpatch.py"
],
"test_command": [
"python3",
"-m",
"pytest",
"-vv",
"--continue-on-collection-errors",
"-o",
"addopts=",
"tests/test_cache.py",
"tests/test_patch.py",
"tests/test_patch_then_unpatch.py",
"tests/test_replace.py",
"tests/test_temp_patch.py",
"tests/test_unpatch.py"
],
"text_fixtures": [],
"binary_fixtures": [],
"nonportable_absolute_paths": [],
"required_external_commands": [],
"declared_console_scripts": [],
"unresolved_external_commands": []
},
"unit_test": [
"tests.test_cache::test_store_retrieve",
"tests.test_cache::test_missing_key_error",
"tests.test_cache::test_clear",
"tests.test_cache::test_culling",
"tests.test_patch::test_patch",
"tests.test_patch::test_mc_patchface",
"tests.test_patch::test_patch_simple_no_newline",
"tests.test_patch::test_patch_invalid",
"tests.test_patch::test_patch_invalid_hunk",
"tests.test_patch::test_patch_invalid_hunk_2",
"tests.test_patch::test_patch_twice",
"tests.test_patch::test_patch_mutable_default_arg",
"tests.test_patch::test_patch_instancemethod",
"tests.test_patch::test_patch_instancemethod_freevars",
"tests.test_patch::test_patch_init_module_level",
"tests.test_patch::test_patch_recursive_module_level",
"tests.test_patch::test_patch_init_super_new",
"tests.test_patch::test_patch_freevars",
"tests.test_patch::test_patch_freevars_order",
"tests.test_patch::test_patch_freevars_remove",
"tests.test_patch::test_patch_freevars_nested",
"tests.test_patch::test_patch_freevars_re_close",
"tests.test_patch::test_patch_instancemethod_twice",
"tests.test_patch::test_patch_instancemethod_mangled",
"tests.test_patch::test_patch_instancemethod_mangled_freevars",
"tests.test_patch::test_patch_instancemethod_mangled_tabs",
"tests.test_patch::test_patch_init",
"tests.test_patch::test_patch_init_change_arg",
"tests.test_patch::test_patch_classmethod",
"tests.test_patch::test_patch_classmethod_twice",
"tests.test_patch::test_patch_staticmethod",
"tests.test_patch::test_patch_staticmethod_twice",
"tests.test_patch::test_patch_future_python",
"tests.test_patch::test_patch_future_instancemethod",
"tests.test_patch::test_patch_nonlocal_fails",
"tests.test_patch::test_patch_by_path",
"tests.test_patch::test_patch_by_path_already_imported",
"tests.test_patch_then_unpatch::test_patch_unpatch",
"tests.test_replace::test_replace",
"tests.test_replace::test_replace_only_cares_about_ast",
"tests.test_replace::test_replace_twice",
"tests.test_replace::test_replace_mutable_default_arg",
"tests.test_replace::test_replace_instancemethod",
"tests.test_replace::test_replace_unexpected_source",
"tests.test_replace::test_replace_no_expected_source",
"tests.test_temp_patch::test_context_manager",
"tests.test_temp_patch::test_decorator",
"tests.test_temp_patch::test_patch_by_path",
"tests.test_unpatch::test_unpatch",
"tests.test_unpatch::test_unpatch_invalid_unreversed",
"tests.test_unpatch::test_unpatch_invalid_hunk"
],
"expected_test_count": 50,
"measured_test_count": 50,
"enumerated_test_count": 51,
"test_count_source": "measured-suite",
"python_install_contract": {
"strategy": "editable-install",
"project_root": ".",
"package_roots": [
"src"
],
"build_backend": "uv_build",
"build_system_requires": [
"uv-build>=0.12.1,<0.13"
],
"editable": true,
"project_dependencies": [],
"editable_requires": [],
"runtime_strategy": "editable-install",
"runtime_build_inputs": [
"README.rst"
],
"build_context_inputs": [],
"distribution_name": "patchy",
"evidence": [
"./pyproject.toml"
],
"errors": [],
"isolate_build_backend": false,
"schema_version": "programgen.python-install-contract.v7"
},
"test_binary_files": [],
"artifact_contract_version": "programgen.forward-harbor.v6",
"renderer_schema_version": "programgen.forward-renderer.v4",
"test_import_contract": [
{
"test_file": "tests/conftest.py",
"source_file": null,
"import_root": "__future__",
"definition_path": null,
"required_import_path": "__future__.annotations",
"import_statement": "from __future__ import annotations",
"symbol": "annotations",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/conftest.py",
"source_file": "src/patchy/api.py",
"import_root": "patchy",
"definition_path": "patchy.api",
"required_import_path": "patchy.api",
"import_statement": "import patchy.api",
"symbol": null,
"kind": "module",
"classification": "local-module"
},
{
"test_file": "tests/conftest.py",
"source_file": "src/patchy/api.py",
"import_root": "patchy",
"definition_path": "patchy.api._patching_cache",
"required_import_path": "patchy.api._patching_cache",
"import_statement": "import patchy.api",
"symbol": "_patching_cache",
"kind": "constant",
"classification": "local-resolved"
},
{
"test_file": "tests/conftest.py",
"source_file": null,
"import_root": "pytest",
"definition_path": null,
"required_import_path": "pytest",
"import_statement": "import pytest",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_cache.py",
"source_file": null,
"import_root": "__future__",
"definition_path": null,
"required_import_path": "__future__.annotations",
"import_statement": "from __future__ import annotations",
"symbol": "annotations",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_cache.py",
"source_file": "src/patchy/cache.py",
"import_root": "patchy",
"definition_path": "patchy.cache.PatchingCache",
"required_import_path": "patchy.cache.PatchingCache",
"import_statement": "from patchy.cache import PatchingCache",
"symbol": "PatchingCache",
"kind": "class",
"classification": "local-resolved"
},
{
"test_file": "tests/test_cache.py",
"source_file": null,
"import_root": "pytest",
"definition_path": null,
"required_import_path": "pytest",
"import_statement": "import pytest",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch.py",
"source_file": null,
"import_root": "__future__",
"definition_path": null,
"required_import_path": "__future__",
"import_statement": "import __future__",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch.py",
"source_file": null,
"import_root": "__future__",
"definition_path": null,
"required_import_path": "__future__.annotations",
"import_statement": "from __future__ import annotations",
"symbol": "annotations",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch.py",
"source_file": null,
"import_root": "collections",
"definition_path": null,
"required_import_path": "collections.abc.Callable",
"import_statement": "from collections.abc import Callable",
"symbol": "Callable",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch.py",
"source_file": null,
"import_root": "future_instancemethod",
"definition_path": null,
"required_import_path": "future_instancemethod.Sample",
"import_statement": "from future_instancemethod import Sample",
"symbol": "Sample",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch.py",
"source_file": null,
"import_root": "future_user",
"definition_path": null,
"required_import_path": "future_user.sample",
"import_statement": "from future_user import sample",
"symbol": "sample",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch.py",
"source_file": null,
"import_root": "patch_by_path_pkg",
"definition_path": null,
"required_import_path": "patch_by_path_pkg.mod.Foo",
"import_statement": "from patch_by_path_pkg.mod import Foo",
"symbol": "Foo",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch.py",
"source_file": null,
"import_root": "patch_by_path_pkg2",
"definition_path": null,
"required_import_path": "patch_by_path_pkg2.mod.Foo",
"import_statement": "from patch_by_path_pkg2.mod import Foo",
"symbol": "Foo",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch.py",
"source_file": null,
"import_root": "patch_init_module_level",
"definition_path": null,
"required_import_path": "patch_init_module_level",
"import_statement": "import patch_init_module_level as mod",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch.py",
"source_file": null,
"import_root": "patch_recursive_module_level",
"definition_path": null,
"required_import_path": "patch_recursive_module_level",
"import_statement": "import patch_recursive_module_level as mod",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch.py",
"source_file": "src/patchy/api.py",
"import_root": "patchy",
"definition_path": "patchy.api",
"required_import_path": "patchy.api",
"import_statement": "import patchy.api",
"symbol": null,
"kind": "module",
"classification": "local-module"
},
{
"test_file": "tests/test_patch.py",
"source_file": "src/patchy/api.py",
"import_root": "patchy",
"definition_path": "patchy.api.mc_patchface",
"required_import_path": "patchy.mc_patchface",
"import_statement": "import patchy.api",
"symbol": "mc_patchface",
"kind": "constant",
"classification": "local-resolved"
},
{
"test_file": "tests/test_patch.py",
"source_file": "src/patchy/api.py",
"import_root": "patchy",
"definition_path": "patchy.api.patch",
"required_import_path": "patchy.patch",
"import_statement": "import patchy.api",
"symbol": "patch",
"kind": "function",
"classification": "local-resolved"
},
{
"test_file": "tests/test_patch.py",
"source_file": null,
"import_root": "pytest",
"definition_path": null,
"required_import_path": "pytest",
"import_statement": "import pytest",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch.py",
"source_file": null,
"import_root": "sys",
"definition_path": null,
"required_import_path": "sys",
"import_statement": "import sys",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch.py",
"source_file": null,
"import_root": "tabs_mangled",
"definition_path": null,
"required_import_path": "tabs_mangled.Artist",
"import_statement": "from tabs_mangled import Artist",
"symbol": "Artist",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch.py",
"source_file": null,
"import_root": "textwrap",
"definition_path": null,
"required_import_path": "textwrap.dedent",
"import_statement": "from textwrap import dedent",
"symbol": "dedent",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch_then_unpatch.py",
"source_file": null,
"import_root": "__future__",
"definition_path": null,
"required_import_path": "__future__.annotations",
"import_statement": "from __future__ import annotations",
"symbol": "annotations",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_patch_then_unpatch.py",
"source_file": "src/patchy/api.py",
"import_root": "patchy",
"definition_path": "patchy.api",
"required_import_path": "patchy.api",
"import_statement": "import patchy.api",
"symbol": null,
"kind": "module",
"classification": "local-module"
},
{
"test_file": "tests/test_patch_then_unpatch.py",
"source_file": "src/patchy/api.py",
"import_root": "patchy",
"definition_path": "patchy.api.patch",
"required_import_path": "patchy.patch",
"import_statement": "import patchy.api",
"symbol": "patch",
"kind": "function",
"classification": "local-resolved"
},
{
"test_file": "tests/test_patch_then_unpatch.py",
"source_file": "src/patchy/api.py",
"import_root": "patchy",
"definition_path": "patchy.api.unpatch",
"required_import_path": "patchy.unpatch",
"import_statement": "import patchy.api",
"symbol": "unpatch",
"kind": "function",
"classification": "local-resolved"
},
{
"test_file": "tests/test_patch_then_unpatch.py",
"source_file": null,
"import_root": "typing",
"definition_path": null,
"required_import_path": "typing.Any",
"import_statement": "from typing import Any",
"symbol": "Any",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_replace.py",
"source_file": null,
"import_root": "__future__",
"definition_path": null,
"required_import_path": "__future__.annotations",
"import_statement": "from __future__ import annotations",
"symbol": "annotations",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_replace.py",
"source_file": "src/patchy/api.py",
"import_root": "patchy",
"definition_path": "patchy.api",
"required_import_path": "patchy.api",
"import_statement": "import patchy.api",
"symbol": null,
"kind": "module",
"classification": "local-module"
},
{
"test_file": "tests/test_replace.py",
"source_file": "src/patchy/api.py",
"import_root": "patchy",
"definition_path": "patchy.api.replace",
"required_import_path": "patchy.replace",
"import_statement": "import patchy.api",
"symbol": "replace",
"kind": "function",
"classification": "local-resolved"
},
{
"test_file": "tests/test_replace.py",
"source_file": null,
"import_root": "pytest",
"definition_path": null,
"required_import_path": "pytest",
"import_statement": "import pytest",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_temp_patch.py",
"source_file": null,
"import_root": "__future__",
"definition_path": null,
"required_import_path": "__future__.annotations",
"import_statement": "from __future__ import annotations",
"symbol": "annotations",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_temp_patch.py",
"source_file": "src/patchy/api.py",
"import_root": "patchy",
"definition_path": "patchy.api",
"required_import_path": "patchy.api",
"import_statement": "import patchy.api",
"symbol": null,
"kind": "module",
"classification": "local-module"
},
{
"test_file": "tests/test_temp_patch.py",
"source_file": "src/patchy/api.py",
"import_root": "patchy",
"definition_path": "patchy.api.temp_patch",
"required_import_path": "patchy.temp_patch",
"import_statement": "import patchy.api",
"symbol": "temp_patch",
"kind": "class",
"classification": "local-resolved"
},
{
"test_file": "tests/test_temp_patch.py",
"source_file": null,
"import_root": "sys",
"definition_path": null,
"required_import_path": "sys",
"import_statement": "import sys",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_temp_patch.py",
"source_file": null,
"import_root": "textwrap",
"definition_path": null,
"required_import_path": "textwrap.dedent",
"import_statement": "from textwrap import dedent",
"symbol": "dedent",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_temp_patch.py",
"source_file": null,
"import_root": "tmp_by_path_pkg",
"definition_path": null,
"required_import_path": "tmp_by_path_pkg.mod.Foo",
"import_statement": "from tmp_by_path_pkg.mod import Foo",
"symbol": "Foo",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_unpatch.py",
"source_file": null,
"import_root": "__future__",
"definition_path": null,
"required_import_path": "__future__.annotations",
"import_statement": "from __future__ import annotations",
"symbol": "annotations",
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_unpatch.py",
"source_file": "src/patchy/api.py",
"import_root": "patchy",
"definition_path": "patchy.api",
"required_import_path": "patchy.api",
"import_statement": "import patchy.api",
"symbol": null,
"kind": "module",
"classification": "local-module"
},
{
"test_file": "tests/test_unpatch.py",
"source_file": "src/patchy/api.py",
"import_root": "patchy",
"definition_path": "patchy.api.unpatch",
"required_import_path": "patchy.unpatch",
"import_statement": "import patchy.api",
"symbol": "unpatch",
"kind": "function",
"classification": "local-resolved"
},
{
"test_file": "tests/test_unpatch.py",
"source_file": null,
"import_root": "pytest",
"definition_path": null,
"required_import_path": "pytest",
"import_statement": "import pytest",
"symbol": null,
"kind": "external",
"classification": "external"
}
],
"test_import_contract_digest": "c13e881ef85ee56100800c3af6e2308c854466a294a882324c5a8407d49548d6"
}