-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
At this time, two generators were identified:
- to generate benchmark tests between ValidGen and GoValidator
- to generate end-to-end tests
- to validate ValidGen with integer types
- to validate ValidGen with float types
- to validate all possible use cases in ValidGen (all validations x all types)
Beyond that, some new generators could be created:
- Unit tests to validate the "buildValidationCode" function
And, for all cases, valid scenarios and invalid scenarios could be generated.
After that, some refactoring could be done:
- Remove duplicated tests
- Some helpers (like HelperFromNormalizedToBasicTypes) could be moved to the new generator package
To be possible to generate all these tests, this new generator must have a table with:
- all valid operations
- all invalid operations
- all valid go types
- all valid operation x type
- valid input cases for each operation x type
- invalid input cases for each operation x type
Metadata
Metadata
Assignees
Labels
No labels