Skip to content
This repository was archived by the owner on Jul 17, 2026. It is now read-only.
This repository was archived by the owner on Jul 17, 2026. It is now read-only.

Codegen fails to classify FunctionCalls for functions as Class Fields #222

Description

@JohnPeng47

So the following case does not seem to get classified as a FunctionCall

            module_cov = module_cov.get_coverage()
            test_result = [StratResult(src_file, self.test_input.path)]
            improved, failed, no_improve = await self.evaluator(  ## <<< does not recognize this as a FunctionCall
                test_result,
                self.test_input,
                module_cov,
                self.test_input.test_file,
                n_times=n_times,
            )

Defined as follows:

        self.strat: BaseStrategy = AUGMENT_STRATS[strat](self.src_repo, self.test_input)
        self.evaluator: Evaluator = AUGMENT_EVALS[evaluator](
            self.repo_name, 
            self.src_repo, 
            self.run_args, 
            test_input, 
            self.run_test,
            use_cache = self.use_cache,
            delete_last = self.delete_last
        )
        self.model_name = model

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions