{ "passed_ptp": [ "tests/test_bench_handler.py::test_benchy_and_register", "tests/test_cli_handler.py::test_cli_desc", "tests/test_cli_handler.py::test_cli_logs_on", "tests/test_cli_handler.py::test_cli_logs_off", "tests/test_cli_handler.py::test_cli_log_obj", "tests/test_cli_handler.py::test_cli_add_funcs", "tests/test_cli_handler.py::test_async_func", "tests/test_cli_handler.py::test_variadic_func", "tests/test_log_handler.py::test_name_file_stream", "tests/test_log_handler.py::test_loggers", "tests/test_log_handler.py::test_loglvl_shandler_streamfmt", "tests/test_log_handler.py::test_filepath_filename_fhandler", "tests/test_log_handler.py::test_filefmt", "tests/test_log_handler.py::test_filecap", "tests/test_log_handler.py::test_filecap_tomany", "tests/test_log_handler.py::test_timeout", "tests/test_log_handler.py::test_out", "tests/test_log_handler.py::test_out_file_fail", "tests/test_log_handler.py::test_out_folder_fail", "tests/test_meta_handler.py::test_add_func", "tests/test_meta_handler.py::test_add_cli", "tests/test_meta_handler.py::test_add_log", "tests/test_sutools.py::test_register", "tests/test_sutools.py::test_register_variadic", "tests/test_sutools.py::test_cli", "tests/test_sutools.py::test_logger", "tests/test_sutools.py::test_logger_path", "tests/test_sutools.py::test_logger_cloggers", "tests/test_sutools.py::test_log", "tests/test_sutools.py::test_logger_cli" ], "test_files": [ "tests/__init__.py", "tests/test_bench_handler.py", "tests/test_cli_handler.py", "tests/test_log_handler.py", "tests/test_meta_handler.py", "tests/test_sutools.py" ], "test_command": [ "bash", "-lc", "set -uo pipefail\nrun=(python3 -m pytest -vv --continue-on-collection-errors -o addopts= tests/test_bench_handler.py tests/test_cli_handler.py tests/test_log_handler.py tests/test_meta_handler.py tests/test_sutools.py)\nif [ -n \"${COVERAGE_FILE:-}\" ]; then run=(python3 -m coverage run --source=. -m pytest -vv --continue-on-collection-errors -o addopts= tests/test_bench_handler.py tests/test_cli_handler.py tests/test_log_handler.py tests/test_meta_handler.py tests/test_sutools.py); fi\ncollect=(python3 -m pytest -q -o addopts= tests/test_bench_handler.py tests/test_cli_handler.py tests/test_log_handler.py tests/test_meta_handler.py tests/test_sutools.py)\ncollected_output=$(\"${collect[@]}\" --collect-only)\ncollect_rc=$?\nif [ \"$collect_rc\" -ne 0 ] && [ \"$collect_rc\" -ne 5 ]; then\n printf \"%s\\n\" \"$collected_output\" >&2\n printf \"[programgen] test collection failed with exit code %s\\n\" \"$collect_rc\" >&2\n exit \"$collect_rc\"\nfi\nmapfile -t collected < <(printf \"%s\\n\" \"$collected_output\" | sed -n '/::/p' | sed 's/[[:space:]]*$//')\nif [ \"${#collected[@]}\" -gt 500 ]; then\n while IFS= read -r id; do run+=(\"--deselect=$id\"); done < <(printf \"%s\\n\" \"${collected[@]}\" | awk -F'::' -v limit=500 '{f=$1; n[f]++; idx[f,n[f]]=NR; all[NR]=$0; if(!(f in seen)){seen[f]=1; order[++m]=f}} END{d=1; c=0; while(c=limit) break}} if(!a) break; d++} for(r=1;r<=NR;r++) if(!(r in keep)) print all[r]}')\nfi\n\"${run[@]}\"; exit $?" ], "test_payload_contract": { "schema_version": "programgen.test-payload-contract.v1", "test_files": [ "tests/__init__.py", "tests/test_bench_handler.py", "tests/test_cli_handler.py", "tests/test_log_handler.py", "tests/test_meta_handler.py", "tests/test_sutools.py" ], "test_command": [ "bash", "-lc", "set -uo pipefail\nrun=(python3 -m pytest -vv --continue-on-collection-errors -o addopts= tests/test_bench_handler.py tests/test_cli_handler.py tests/test_log_handler.py tests/test_meta_handler.py tests/test_sutools.py)\nif [ -n \"${COVERAGE_FILE:-}\" ]; then run=(python3 -m coverage run --source=. -m pytest -vv --continue-on-collection-errors -o addopts= tests/test_bench_handler.py tests/test_cli_handler.py tests/test_log_handler.py tests/test_meta_handler.py tests/test_sutools.py); fi\ncollect=(python3 -m pytest -q -o addopts= tests/test_bench_handler.py tests/test_cli_handler.py tests/test_log_handler.py tests/test_meta_handler.py tests/test_sutools.py)\ncollected_output=$(\"${collect[@]}\" --collect-only)\ncollect_rc=$?\nif [ \"$collect_rc\" -ne 0 ] && [ \"$collect_rc\" -ne 5 ]; then\n printf \"%s\\n\" \"$collected_output\" >&2\n printf \"[programgen] test collection failed with exit code %s\\n\" \"$collect_rc\" >&2\n exit \"$collect_rc\"\nfi\nmapfile -t collected < <(printf \"%s\\n\" \"$collected_output\" | sed -n '/::/p' | sed 's/[[:space:]]*$//')\nif [ \"${#collected[@]}\" -gt 500 ]; then\n while IFS= read -r id; do run+=(\"--deselect=$id\"); done < <(printf \"%s\\n\" \"${collected[@]}\" | awk -F'::' -v limit=500 '{f=$1; n[f]++; idx[f,n[f]]=NR; all[NR]=$0; if(!(f in seen)){seen[f]=1; order[++m]=f}} END{d=1; c=0; while(c=limit) break}} if(!a) break; d++} for(r=1;r<=NR;r++) if(!(r in keep)) print all[r]}')\nfi\n\"${run[@]}\"; exit $?" ], "text_fixtures": [], "binary_fixtures": [], "nonportable_absolute_paths": [], "required_external_commands": [], "declared_console_scripts": [], "unresolved_external_commands": [] }, "unit_test": [ "tests.test_bench_handler::test_benchy_and_register", "tests.test_cli_handler::test_cli_desc", "tests.test_cli_handler::test_cli_logs_on", "tests.test_cli_handler::test_cli_logs_off", "tests.test_cli_handler::test_cli_log_obj", "tests.test_cli_handler::test_cli_add_funcs", "tests.test_cli_handler::test_async_func", "tests.test_cli_handler::test_variadic_func", "tests.test_log_handler::test_name_file_stream", "tests.test_log_handler::test_loggers", "tests.test_log_handler::test_loglvl_shandler_streamfmt", "tests.test_log_handler::test_filepath_filename_fhandler", "tests.test_log_handler::test_filefmt", "tests.test_log_handler::test_filecap", "tests.test_log_handler::test_filecap_tomany", "tests.test_log_handler::test_timeout", "tests.test_log_handler::test_out", "tests.test_log_handler::test_out_file_fail", "tests.test_log_handler::test_out_folder_fail", "tests.test_meta_handler::test_add_func", "tests.test_meta_handler::test_add_cli", "tests.test_meta_handler::test_add_log", "tests.test_sutools::test_register", "tests.test_sutools::test_register_variadic", "tests.test_sutools::test_cli", "tests.test_sutools::test_logger", "tests.test_sutools::test_logger_path", "tests.test_sutools::test_logger_cloggers", "tests.test_sutools::test_log", "tests.test_sutools::test_logger_cli" ], "expected_test_count": 30, "measured_test_count": 30, "enumerated_test_count": 30, "test_count_source": "measured-suite", "python_install_contract": { "strategy": "editable-install", "project_root": ".", "package_roots": [ "." ], "build_backend": "setuptools.build_meta", "build_system_requires": [ "setuptools>=42", "wheel" ], "editable": true, "project_dependencies": [], "editable_requires": [], "runtime_strategy": "editable-install", "runtime_build_inputs": [ "README.md" ], "build_context_inputs": [], "distribution_name": "sutools", "evidence": [ "./pyproject.toml", "./setup.py", "build-tools-isolated-from-runtime-lock" ], "errors": [], "isolate_build_backend": true, "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/test_bench_handler.py", "source_file": "sutools/__init__.py", "import_root": "sutools", "definition_path": "sutools", "required_import_path": "sutools", "import_statement": "import sutools as su", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_bench_handler.py", "source_file": "sutools/bench_handler.py", "import_root": "sutools", "definition_path": "sutools.bench_handler", "required_import_path": "sutools.bench_handler", "import_statement": "from sutools import bench_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_bench_handler.py", "source_file": "sutools/bench_handler.py", "import_root": "sutools", "definition_path": "sutools.bench_handler.Benchy", "required_import_path": "sutools.bench_handler.Benchy", "import_statement": "from sutools import bench_handler", "symbol": "Benchy", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_bench_handler.py", "source_file": "sutools/__init__.py", "import_root": "sutools", "definition_path": "sutools.benchy", "required_import_path": "sutools.benchy", "import_statement": "import sutools as su", "symbol": "benchy", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_bench_handler.py", "source_file": "sutools/__init__.py", "import_root": "sutools", "definition_path": "sutools.register", "required_import_path": "sutools.register", "import_statement": "import sutools as su", "symbol": "register", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_bench_handler.py", "source_file": "sutools/__init__.py", "import_root": "sutools", "definition_path": "sutools.store", "required_import_path": "sutools.store", "import_statement": "import sutools as su", "symbol": "store", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_cli_handler.py", "source_file": null, "import_root": "argparse", "definition_path": null, "required_import_path": "argparse", "import_statement": "import sys, logging, argparse, pytest, asyncio", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_cli_handler.py", "source_file": null, "import_root": "asyncio", "definition_path": null, "required_import_path": "asyncio", "import_statement": "import sys, logging, argparse, pytest, asyncio", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_cli_handler.py", "source_file": null, "import_root": "logging", "definition_path": null, "required_import_path": "logging", "import_statement": "import sys, logging, argparse, pytest, asyncio", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_cli_handler.py", "source_file": null, "import_root": "pytest", "definition_path": null, "required_import_path": "pytest", "import_statement": "import sys, logging, argparse, pytest, asyncio", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_cli_handler.py", "source_file": "sutools/cli_handler.py", "import_root": "sutools", "definition_path": "sutools.cli_handler", "required_import_path": "sutools.cli_handler", "import_statement": "from sutools import cli_handler, log_handler, meta_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_cli_handler.py", "source_file": "sutools/cli_handler.py", "import_root": "sutools", "definition_path": "sutools.cli_handler.CLI", "required_import_path": "sutools.cli_handler.CLI", "import_statement": "from sutools import cli_handler, log_handler, meta_handler", "symbol": "CLI", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_cli_handler.py", "source_file": "sutools/log_handler.py", "import_root": "sutools", "definition_path": "sutools.log_handler", "required_import_path": "sutools.log_handler", "import_statement": "from sutools import cli_handler, log_handler, meta_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_cli_handler.py", "source_file": "sutools/log_handler.py", "import_root": "sutools", "definition_path": "sutools.log_handler.Logger", "required_import_path": "sutools.log_handler.Logger", "import_statement": "from sutools import cli_handler, log_handler, meta_handler", "symbol": "Logger", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_cli_handler.py", "source_file": "sutools/meta_handler.py", "import_root": "sutools", "definition_path": "sutools.meta_handler", "required_import_path": "sutools.meta_handler", "import_statement": "from sutools import cli_handler, log_handler, meta_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_cli_handler.py", "source_file": "sutools/meta_handler.py", "import_root": "sutools", "definition_path": "sutools.meta_handler.Store", "required_import_path": "sutools.meta_handler.Store", "import_statement": "from sutools import cli_handler, log_handler, meta_handler", "symbol": "Store", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_cli_handler.py", "source_file": null, "import_root": "sys", "definition_path": null, "required_import_path": "sys", "import_statement": "import sys, logging, argparse, pytest, asyncio", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_cli_handler.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.Mock", "import_statement": "from unittest.mock import patch, Mock", "symbol": "Mock", "kind": "external", "classification": "external" }, { "test_file": "tests/test_cli_handler.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.patch", "import_statement": "from unittest.mock import patch, Mock", "symbol": "patch", "kind": "external", "classification": "external" }, { "test_file": "tests/test_log_handler.py", "source_file": null, "import_root": "datetime", "definition_path": null, "required_import_path": "datetime", "import_statement": "import logging, sys, datetime, os, time", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_log_handler.py", "source_file": null, "import_root": "freezegun", "definition_path": null, "required_import_path": "freezegun.freeze_time", "import_statement": "from freezegun import freeze_time", "symbol": "freeze_time", "kind": "external", "classification": "external" }, { "test_file": "tests/test_log_handler.py", "source_file": null, "import_root": "logging", "definition_path": null, "required_import_path": "logging", "import_statement": "import logging, sys, datetime, os, time", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_log_handler.py", "source_file": null, "import_root": "os", "definition_path": null, "required_import_path": "os", "import_statement": "import logging, sys, datetime, os, time", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_log_handler.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_log_handler.py", "source_file": "sutools/log_handler.py", "import_root": "sutools", "definition_path": "sutools.log_handler", "required_import_path": "sutools.log_handler", "import_statement": "from sutools import log_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_log_handler.py", "source_file": "sutools/log_handler.py", "import_root": "sutools", "definition_path": "sutools.log_handler.Logger", "required_import_path": "sutools.log_handler.Logger", "import_statement": "from sutools import log_handler", "symbol": "Logger", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_log_handler.py", "source_file": null, "import_root": "sys", "definition_path": null, "required_import_path": "sys", "import_statement": "import logging, sys, datetime, os, time", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_log_handler.py", "source_file": null, "import_root": "time", "definition_path": null, "required_import_path": "time", "import_statement": "import logging, sys, datetime, os, time", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_log_handler.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.MagicMock", "import_statement": "from unittest.mock import patch, mock_open, MagicMock, Mock, call", "symbol": "MagicMock", "kind": "external", "classification": "external" }, { "test_file": "tests/test_log_handler.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.Mock", "import_statement": "from unittest.mock import patch, mock_open, MagicMock, Mock, call", "symbol": "Mock", "kind": "external", "classification": "external" }, { "test_file": "tests/test_log_handler.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.call", "import_statement": "from unittest.mock import patch, mock_open, MagicMock, Mock, call", "symbol": "call", "kind": "external", "classification": "external" }, { "test_file": "tests/test_log_handler.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.mock_open", "import_statement": "from unittest.mock import patch, mock_open, MagicMock, Mock, call", "symbol": "mock_open", "kind": "external", "classification": "external" }, { "test_file": "tests/test_log_handler.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.patch", "import_statement": "from unittest.mock import patch, mock_open, MagicMock, Mock, call", "symbol": "patch", "kind": "external", "classification": "external" }, { "test_file": "tests/test_meta_handler.py", "source_file": null, "import_root": "logging", "definition_path": null, "required_import_path": "logging", "import_statement": "import logging, pytest", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_meta_handler.py", "source_file": null, "import_root": "pytest", "definition_path": null, "required_import_path": "pytest", "import_statement": "import logging, pytest", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_meta_handler.py", "source_file": "sutools/cli_handler.py", "import_root": "sutools", "definition_path": "sutools.cli_handler", "required_import_path": "sutools.cli_handler", "import_statement": "from sutools import meta_handler, cli_handler, log_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_meta_handler.py", "source_file": "sutools/cli_handler.py", "import_root": "sutools", "definition_path": "sutools.cli_handler.CLI", "required_import_path": "sutools.cli_handler.CLI", "import_statement": "from sutools import meta_handler, cli_handler, log_handler", "symbol": "CLI", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_meta_handler.py", "source_file": "sutools/log_handler.py", "import_root": "sutools", "definition_path": "sutools.log_handler", "required_import_path": "sutools.log_handler", "import_statement": "from sutools import meta_handler, cli_handler, log_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_meta_handler.py", "source_file": "sutools/log_handler.py", "import_root": "sutools", "definition_path": "sutools.log_handler.Logger", "required_import_path": "sutools.log_handler.Logger", "import_statement": "from sutools import meta_handler, cli_handler, log_handler", "symbol": "Logger", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_meta_handler.py", "source_file": "sutools/meta_handler.py", "import_root": "sutools", "definition_path": "sutools.meta_handler", "required_import_path": "sutools.meta_handler", "import_statement": "from sutools import meta_handler, cli_handler, log_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_meta_handler.py", "source_file": "sutools/meta_handler.py", "import_root": "sutools", "definition_path": "sutools.meta_handler.Store", "required_import_path": "sutools.meta_handler.Store", "import_statement": "from sutools import meta_handler, cli_handler, log_handler", "symbol": "Store", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_meta_handler.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.Mock", "import_statement": "from unittest.mock import Mock", "symbol": "Mock", "kind": "external", "classification": "external" }, { "test_file": "tests/test_sutools.py", "source_file": null, "import_root": "argparse", "definition_path": null, "required_import_path": "argparse", "import_statement": "import inspect, pytest, sys, argparse, logging", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_sutools.py", "source_file": null, "import_root": "inspect", "definition_path": null, "required_import_path": "inspect", "import_statement": "import inspect, pytest, sys, argparse, logging", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_sutools.py", "source_file": null, "import_root": "logging", "definition_path": null, "required_import_path": "logging", "import_statement": "import inspect, pytest, sys, argparse, logging", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_sutools.py", "source_file": null, "import_root": "pytest", "definition_path": null, "required_import_path": "pytest", "import_statement": "import inspect, pytest, sys, argparse, logging", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_sutools.py", "source_file": "sutools/__init__.py", "import_root": "sutools", "definition_path": "sutools", "required_import_path": "sutools", "import_statement": "import sutools as su", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_sutools.py", "source_file": "sutools/__init__.py", "import_root": "sutools", "definition_path": "sutools.cli", "required_import_path": "sutools.cli", "import_statement": "import sutools as su", "symbol": "cli", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_sutools.py", "source_file": "sutools/__init__.py", "import_root": "sutools", "definition_path": "sutools.log", "required_import_path": "sutools.log", "import_statement": "import sutools as su", "symbol": "log", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_sutools.py", "source_file": "sutools/__init__.py", "import_root": "sutools", "definition_path": "sutools.logger", "required_import_path": "sutools.logger", "import_statement": "import sutools as su", "symbol": "logger", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_sutools.py", "source_file": "sutools/__init__.py", "import_root": "sutools", "definition_path": "sutools.register", "required_import_path": "sutools.register", "import_statement": "import sutools as su", "symbol": "register", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_sutools.py", "source_file": "sutools/__init__.py", "import_root": "sutools", "definition_path": "sutools.store", "required_import_path": "sutools.store", "import_statement": "import sutools as su", "symbol": "store", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_sutools.py", "source_file": null, "import_root": "sys", "definition_path": null, "required_import_path": "sys", "import_statement": "import inspect, pytest, sys, argparse, logging", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_sutools.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.Mock", "import_statement": "from unittest.mock import patch, Mock, mock_open", "symbol": "Mock", "kind": "external", "classification": "external" }, { "test_file": "tests/test_sutools.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.mock_open", "import_statement": "from unittest.mock import patch, Mock, mock_open", "symbol": "mock_open", "kind": "external", "classification": "external" }, { "test_file": "tests/test_sutools.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.patch", "import_statement": "from unittest.mock import patch, Mock, mock_open", "symbol": "patch", "kind": "external", "classification": "external" } ], "test_import_contract_digest": "1030d0d9845fdf0705928bf973dccef4d5cdea921297e52c421e74c817986cb1" }