Skip to content

Creating mock 'stubs' #321

Pinned Answered by MikeSchulze
bugbountyguy asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @bugbountyguy

I assume you are using Godot ConfigFile, the core function save.
With Godot version 4.x, the GDScript has been rewritten so that overwriting a core function is no longer possible, which breaks my mock implementation.
For more details, see #42

According to the Godot core developers, overwriting core functions was a bug.
To solve this problem, I have some ideas, but the implementation will take some time.
I have checked the GdUnit4 documentation, and I am missing this important information about mocking core functions, I
will add it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bugbountyguy
Comment options

Answer selected by bugbountyguy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation clarified
2 participants