from pathlib import Path
import logging


def evaluate_implementation(callback_file: Path, function_name: str) -> bool:
    """Checks whether a function name is found in a source file or not."""
    found = False
    impl = callback_file.read_text()
    if function_name in impl:
        logging.info(f"Found '{function_name}' in '{callback_file}'.")
        found = True
    else:
        logging.error(f"Did not find '{function_name}' in '{callback_file}'.")
    return found