Skip to content

Comments

Expand test coverage#133

Merged
mattt merged 13 commits intomainfrom
mattt/expand-test-coverage
Feb 17, 2026
Merged

Expand test coverage#133
mattt merged 13 commits intomainfrom
mattt/expand-test-coverage

Conversation

@mattt
Copy link
Owner

@mattt mattt commented Feb 17, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands test coverage for the AnyLanguageModel framework by adding comprehensive test suites for several previously untested or under-tested components. The new tests validate API functionality, type initializers, enum cases, protocol implementations, and utility extensions.

Changes:

  • Added tests for default ToolExecutionDelegate behavior and ToolExecutionDecision enum cases
  • Added comprehensive test coverage for LanguageModelFeedback including sentiment and issue category enums
  • Added tests for Instructions initialization and builder functionality
  • Added tests for GenerationGuide factory methods across multiple types (String, Int, Float, Double, Decimal, arrays)
  • Added tests for DynamicGenerationSchema conversion, validation, and error handling
  • Added tests for ConvertibleToGeneratedContent protocol implementations
  • Added tests for Character extensions used in JSON validation

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
Tests/AnyLanguageModelTests/ToolExecutionDelegateTests.swift Adds tests for default delegate behavior, decision enum construction, and error propagation
Tests/AnyLanguageModelTests/LanguageModelFeedbackTests.swift New test suite validating feedback sentiment, issue categories, and initializers
Tests/AnyLanguageModelTests/InstructionsTests.swift New test suite for Instructions API including builder pattern and string representations
Tests/AnyLanguageModelTests/GenerationGuideTests.swift New test suite validating factory methods and boundary setting for numeric and array guides
Tests/AnyLanguageModelTests/DynamicGenerationSchemaTests.swift New test suite for schema conversion, validation, and error handling for duplicate/undefined references
Tests/AnyLanguageModelTests/ConvertibleToGeneratedContentTests.swift New test suite for optional, array, and content conversion implementations
Tests/AnyLanguageModelTests/CharacterExtensionsTests.swift New test suite for emoji detection and JSON string character validation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mattt mattt merged commit 7e1d0e0 into main Feb 17, 2026
3 checks passed
@mattt mattt deleted the mattt/expand-test-coverage branch February 17, 2026 20:54
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.

1 participant