Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GD-370: Mock a class with functions return type enum results in an error Parser Error: Cannot return a value of type "null" #371

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

MikeSchulze
Copy link
Owner

Why

The mock was build invalid for classes containing functions with enum return types. It results into a runtime error.

What

  • Fix script parser to handle enum return types.
  • Add test coverage for all variants of enums (class enum, internal class enums, external class enums)

…ror Parser Error: Cannot return a value of type "null"

# Why
The mock was build invalid for classes containing functions with enum return types.
It results into an runtime error.

# What
- Fix script parser to handle enum return types.
- Add test coverage for all variants of enums (class enum, internal class enums, external class enums)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant