def check_test_coverage(self) -> float:
        """
        Check if package has adequate test coverage.
        Returns 1.0 if package has at least 5 test functions, 0.5 if it has 2-4 tests,
        and 0.0 if it has less than 2 tests.
        """
        package_path = pathlib.Path(self.repo_path)

        # Look for tests in common test directory locations
        test_files: List[pathlib.Path] = []
        test_dirs = [
            package_path / "tests",
            package_path / "test",
            package_path.parent / "tests" / package_path.name,
        ]

        for test_dir in test_dirs:
            if test_dir.exists() and test_dir.is_dir():
                test_files.extend(test_dir.glob("test_*.py"))
                test_files.extend(test_dir.glob("*_test.py"))

        # Count total number of test functions across all files
        total_tests = sum(self._count_tests_in_file(file) for file in test_files)

        # Return score based on number of tests
        if total_tests >= 5:
            return 1.0
        elif total_tests >= 2:
            return 0.5
        else:
            return 0.0

        Check if package has adequate test coverage.
        Returns 1.0 if package has at least 5 test functions, 0.5 if it has 2-4 tests,
        and 0.0 if it has less than 2 tests.
        
scripts/integration_health_check.py