9c2bfad7bac2542e741fb94c07d7a38e78e8d477a9e79027d82d43e5ad7f9103.json 10 KB

1
  1. {"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_product_upsert_py", "label": "test_pl_plan_product_upsert.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L1"}, {"id": "tests_test_pl_plan_product_upsert_minimal_prod", "label": "_minimal_prod()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L15"}, {"id": "tests_test_pl_plan_product_upsert_test_build_plan_product_keeps_row_id", "label": "test_build_plan_product_keeps_row_id()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L25"}, {"id": "tests_test_pl_plan_product_upsert_test_build_plan_product_generates_when_missing", "label": "test_build_plan_product_generates_when_missing()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L39"}, {"id": "tests_test_pl_plan_product_upsert_test_upsert_plan_product_rejects_foreign_id", "label": "test_upsert_plan_product_rejects_foreign_id()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L53"}, {"id": "tests_test_pl_plan_product_upsert_test_upsert_plan_product_keeps_payload_id", "label": "test_upsert_plan_product_keeps_payload_id()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L63"}, {"id": "tests_test_pl_plan_product_upsert_test_upsert_plan_product_generates_when_missing", "label": "test_upsert_plan_product_generates_when_missing()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L76"}, {"id": "tests_test_pl_plan_product_upsert_rationale_1", "label": "build_plan_product / upsert \u5e94\u4fdd\u6301 id \u7a33\u5b9a\uff0c\u5e76\u62d2\u7edd\u5916\u952e\u65e0\u6548\u7684\u4ea7\u54c1\u884c id\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L1"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_product_upsert_py", "target": "unittest_mock", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L2", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_product_upsert_py", "target": "pytest", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L4", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_product_upsert_py", "target": "fastapi", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L5", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_product_upsert_py", "target": "app_schemas_pl_plan", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L7", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_product_upsert_py", "target": "app_services", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L8", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_product_upsert_py", "target": "app_services_pl_plan_service", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L9", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_product_upsert_py", "target": "tests_test_pl_plan_product_upsert_minimal_prod", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L15", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_product_upsert_py", "target": "tests_test_pl_plan_product_upsert_test_build_plan_product_keeps_row_id", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L25", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_product_upsert_py", "target": "tests_test_pl_plan_product_upsert_test_build_plan_product_generates_when_missing", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L39", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_product_upsert_py", "target": "tests_test_pl_plan_product_upsert_test_upsert_plan_product_rejects_foreign_id", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L53", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_product_upsert_py", "target": "tests_test_pl_plan_product_upsert_test_upsert_plan_product_keeps_payload_id", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L63", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_product_upsert_py", "target": "tests_test_pl_plan_product_upsert_test_upsert_plan_product_generates_when_missing", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L76", "weight": 1.0}, {"source": "tests_test_pl_plan_product_upsert_test_build_plan_product_keeps_row_id", "target": "tests_test_pl_plan_product_upsert_minimal_prod", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L30", "weight": 1.0}, {"source": "tests_test_pl_plan_product_upsert_test_build_plan_product_generates_when_missing", "target": "tests_test_pl_plan_product_upsert_minimal_prod", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L45", "weight": 1.0}, {"source": "tests_test_pl_plan_product_upsert_rationale_1", "target": "users_zlwu_work_00code_shanxia2_0_backend_tests_test_pl_plan_product_upsert_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L1", "weight": 1.0}], "raw_calls": [{"caller_nid": "tests_test_pl_plan_product_upsert_minimal_prod", "callee": "update", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L21"}, {"caller_nid": "tests_test_pl_plan_product_upsert_minimal_prod", "callee": "PlanProductCreate", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L22"}, {"caller_nid": "tests_test_pl_plan_product_upsert_test_build_plan_product_keeps_row_id", "callee": "build_plan_product", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L26"}, {"caller_nid": "tests_test_pl_plan_product_upsert_test_build_plan_product_generates_when_missing", "callee": "setattr", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L40"}, {"caller_nid": "tests_test_pl_plan_product_upsert_test_build_plan_product_generates_when_missing", "callee": "build_plan_product", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L41"}, {"caller_nid": "tests_test_pl_plan_product_upsert_test_upsert_plan_product_rejects_foreign_id", "callee": "raises", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L54"}, {"caller_nid": "tests_test_pl_plan_product_upsert_test_upsert_plan_product_rejects_foreign_id", "callee": "resolve_plan_product_id_for_upsert", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L55"}, {"caller_nid": "tests_test_pl_plan_product_upsert_test_upsert_plan_product_keeps_payload_id", "callee": "MagicMock", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L64"}, {"caller_nid": "tests_test_pl_plan_product_upsert_test_upsert_plan_product_keeps_payload_id", "callee": "resolve_plan_product_id_for_upsert", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L67"}, {"caller_nid": "tests_test_pl_plan_product_upsert_test_upsert_plan_product_generates_when_missing", "callee": "setattr", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L77"}, {"caller_nid": "tests_test_pl_plan_product_upsert_test_upsert_plan_product_generates_when_missing", "callee": "resolve_plan_product_id_for_upsert", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/tests/test_pl_plan_product_upsert.py", "source_location": "L78"}]}