Skip to content

Make TestFunction less eager to look up data#252

Merged
avalentino merged 1 commit into
liberfa:mainfrom
eerovaher:TestFunction-creation
May 20, 2026
Merged

Make TestFunction less eager to look up data#252
avalentino merged 1 commit into
liberfa:mainfrom
eerovaher:TestFunction-creation

Conversation

@eerovaher
Copy link
Copy Markdown
Contributor

On current main when a TestFunction instance is created it tries to eagerly look up the data it needs from the corresponding Function instance, but in this PR it just stores the Function and the required data is looked up from the Function when it is needed. This reduces the number of TestFunction attributes and the TestFunction.from_function() class method is no longer needed at all.

Previously when a `TestFunction` instance was created it tried to
eagerly look up the data it needs from the corresponding `Function`
instance, but now it just stores the `Function` and the required data is
looked up from the `Function` when it is needed. This reduces the number
of `TestFunction` attributes and the `TestFunction.from_function()`
class method is no longer needed at all.
@avalentino avalentino merged commit 8b9d12a into liberfa:main May 20, 2026
27 checks passed
@eerovaher eerovaher deleted the TestFunction-creation branch May 21, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants