Skip to content

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

@JohnPeng47

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions