⚡ Sangsakala Proxy 🏠 Home
Skip to content

Add type constraints for variadic functions in test generator #1182

Open

Description

@KharuRai

Currently, the generateFunctionExpression method doesn't properly handle the type constraints for variadic functions. When generating random expressions for testing, it doesn't consider the allowed parameter types for variadic functions, potentially creating invalid test cases.

Image

Proposed change
Implement the TODO comment by:
Add support for type-specific argument generation in variadic functions by implementing the existing TODO comment.

  1. Adding a mechanism to specify allowed parameter types for variadic functions
  2. Using those constraints when generating random expressions for testing
  3. Ensuring the generated function calls respect the function signature

Activity

  1. shivammm21 commented on Apr 2, 2025

    @shivammm21

    Hi Team,

    I’d like to take ownership of issue #1182 regarding adding type constraints for variadic functions in the test generator. I will work on implementing the TODO comment by:

    • Adding support for type-specific argument generation in variadic functions.
    • Implementing a mechanism to specify allowed parameter types.
    • Ensuring generated function calls respect the function signature.

    Please assign the issue to me so I can proceed with the implementation.

    Best,
    Shivam Thorat
    @shivammm21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions