- Created JSON representation for DurationCalculator.php, including nodes and edges for methods and imports. - Added JSON for ResolvedServiceSpec.php, detailing its structure and methods. - Introduced JSON for ServiceItemCatalogCategoryTest.php, capturing test methods and their relationships.
1 line
21 KiB
JSON
1 line
21 KiB
JSON
{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_tests_resource_resourcefreetimecalculatortest_php", "label": "ResourceFreeTimeCalculatorTest.php", "file_type": "code", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L1"}, {"id": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "label": "ResourceFreeTimeCalculatorTest", "file_type": "code", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L14"}, {"id": "testcase", "label": "TestCase", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "resourcefreetimecalculator", "label": "ResourceFreeTimeCalculator", "file_type": "code", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L18"}, {"id": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_setup", "label": ".setUp()", "file_type": "code", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L20"}, {"id": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_at", "label": ".at()", "file_type": "code", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L26"}, {"id": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testanemptydayisentirelyfree", "label": ".testAnEmptyDayIsEntirelyFree()", "file_type": "code", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L36"}, {"id": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testasingleappointmentonacapacityoneresourceisbusy", "label": ".testASingleAppointmentOnACapacityOneResourceIsBusy()", "file_type": "code", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L45"}, {"id": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacitythreewithtwooverlappingappointmentsstillhasroom", "label": ".testCapacityThreeWithTwoOverlappingAppointmentsStillHasRoom()", "file_type": "code", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L61"}, {"id": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacityisonlyfullwheneveryplaceistaken", "label": ".testCapacityIsOnlyFullWhenEveryPlaceIsTaken()", "file_type": "code", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L74"}, {"id": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testoccupancyoutsidetheshiftdoesnotcount", "label": ".testOccupancyOutsideTheShiftDoesNotCount()", "file_type": "code", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L89"}, {"id": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testonlytheoverlappingpartofanappointmentcounts", "label": ".testOnlyTheOverlappingPartOfAnAppointmentCounts()", "file_type": "code", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L103"}, {"id": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testarestdayhasnofreetime", "label": ".testARestDayHasNoFreeTime()", "file_type": "code", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L115"}, {"id": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacitybelowoneistreatedasone", "label": ".testCapacityBelowOneIsTreatedAsOne()", "file_type": "code", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L124"}, {"id": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testtwoshiftsinadayarebothcounted", "label": ".testTwoShiftsInADayAreBothCounted()", "file_type": "code", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L137"}], "edges": [{"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_tests_resource_resourcefreetimecalculatortest_php", "target": "resourcefreetimecalculator", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L5", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_tests_resource_resourcefreetimecalculatortest_php", "target": "testcase", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L6", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_tests_resource_resourcefreetimecalculatortest_php", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L14", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "target": "testcase", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L14", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "target": "resourcefreetimecalculator", "relation": "references", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L18", "weight": 1.0, "context": "field"}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_setup", "relation": "method", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L20", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_at", "relation": "method", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L26", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testanemptydayisentirelyfree", "relation": "method", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L36", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testasingleappointmentonacapacityoneresourceisbusy", "relation": "method", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L45", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacitythreewithtwooverlappingappointmentsstillhasroom", "relation": "method", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L61", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacityisonlyfullwheneveryplaceistaken", "relation": "method", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L74", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testoccupancyoutsidetheshiftdoesnotcount", "relation": "method", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L89", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testonlytheoverlappingpartofanappointmentcounts", "relation": "method", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L103", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testarestdayhasnofreetime", "relation": "method", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L115", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacitybelowoneistreatedasone", "relation": "method", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L124", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testtwoshiftsinadayarebothcounted", "relation": "method", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L137", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testasingleappointmentonacapacityoneresourceisbusy", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_at", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L49", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacitythreewithtwooverlappingappointmentsstillhasroom", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_at", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L65", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacityisonlyfullwheneveryplaceistaken", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_at", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L78", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testoccupancyoutsidetheshiftdoesnotcount", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_at", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L93", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testonlytheoverlappingpartofanappointmentcounts", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_at", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L107", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testarestdayhasnofreetime", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_at", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L117", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacitybelowoneistreatedasone", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_at", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L128", "weight": 1.0}, {"source": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testtwoshiftsinadayarebothcounted", "target": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_at", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L141", "weight": 1.0}], "raw_calls": [{"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testanemptydayisentirelyfree", "callee": "forDay", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L38", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testanemptydayisentirelyfree", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L40", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testanemptydayisentirelyfree", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L41", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testanemptydayisentirelyfree", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L42", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testasingleappointmentonacapacityoneresourceisbusy", "callee": "forDay", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L47", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testasingleappointmentonacapacityoneresourceisbusy", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L54", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testasingleappointmentonacapacityoneresourceisbusy", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L55", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacitythreewithtwooverlappingappointmentsstillhasroom", "callee": "forDay", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L63", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacitythreewithtwooverlappingappointmentsstillhasroom", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L70", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacitythreewithtwooverlappingappointmentsstillhasroom", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L71", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacityisonlyfullwheneveryplaceistaken", "callee": "forDay", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L76", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacityisonlyfullwheneveryplaceistaken", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L84", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacityisonlyfullwheneveryplaceistaken", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L85", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testoccupancyoutsidetheshiftdoesnotcount", "callee": "forDay", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L91", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testoccupancyoutsidetheshiftdoesnotcount", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L98", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testoccupancyoutsidetheshiftdoesnotcount", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L99", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testonlytheoverlappingpartofanappointmentcounts", "callee": "forDay", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L105", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testonlytheoverlappingpartofanappointmentcounts", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L112", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testarestdayhasnofreetime", "callee": "forDay", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L117", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testarestdayhasnofreetime", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L119", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testarestdayhasnofreetime", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L120", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacitybelowoneistreatedasone", "callee": "forDay", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L126", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testcapacitybelowoneistreatedasone", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L133", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testtwoshiftsinadayarebothcounted", "callee": "forDay", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L139", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testtwoshiftsinadayarebothcounted", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L146", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testtwoshiftsinadayarebothcounted", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L147", "receiver": null}, {"caller_nid": "resource_resourcefreetimecalculatortest_resourcefreetimecalculatortest_testtwoshiftsinadayarebothcounted", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Resource/ResourceFreeTimeCalculatorTest.php", "source_location": "L148", "receiver": null}]} |