Skip to content

test: Add ModelConfigs unit tests - #7

Draft
matapatos wants to merge 1 commit into
mainfrom
vibe/test-add-modelconfigs-tests
Draft

test: Add ModelConfigs unit tests#7
matapatos wants to merge 1 commit into
mainfrom
vibe/test-add-modelconfigs-tests

Conversation

@matapatos

Copy link
Copy Markdown
Contributor

Summary

  • Add ModelConfigs unit tests

Details

This PR adds comprehensive unit tests for the ModelConfigs class to improve test coverage.

Tests added:

  • Verify that ModelConfigs attribute can be applied to a class
  • Verify that all getter methods exist (getAliasGenerator, isStrToLower, isStrToUpper, isStripWhitespace, getExtra, isStrict, isStopAtFirstError)
  • Verify that getter methods return expected types
  • Verify default values for all configuration options

Testing

New test file: tests/php/tests/ModelConfigsTest.php

All tests should pass once the extension is built and the tests are run.

- Add comprehensive tests for ModelConfigs class
- Test that ModelConfigs attribute can be applied to a class
- Test that all getter methods exist and return expected types
- Test default values for all configuration options

This improves test coverage for the ModelConfigs functionality.

Co-authored-by: matapatos <matapatos@users.noreply.github.com>
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