Skip to content

verify: Test that re-exported types auxiliary types are correct #137

Closed

Description

@tcharding

Given RPC method foobar returning type FooBar with conversion error FooBarError.

Our integration testing strategy verifies that FooBar is re-exported correctly. If FooBar has a field with type FooBarAuxType then we do not currently verify that it is correctly re-exported - i would be nice to come up with a way to prove we got it right. Extremely high chance I made mistakes in this area. Not super likely downstream will notice.

Activity

  1. GideonBature commented on May 6, 2025

    @GideonBature
    Contributor

    One way I am thinking is to also use the explicit type check we are using for the normal types. But it might make the test clumsy. To avoid this, I am thinking of creating another test file to check that all re-exports is done correctly including the Auxiliary types.

    Another way I am looking at is to use a custom macro method of assert_field_is_exact_type!, which we can define and then call for each re-exported types having auxiliary types.

  2. tcharding commented on May 8, 2025

    @tcharding
    MemberAuthor

    Go for it, happy to review what you come up with.

  3. changed the title [-]Test that re-exported `types` auxiliary types are correct[/-] [+]verify: Test that re-exported `types` auxiliary types are correct[/+] on May 12, 2025
  4. self-assigned this
    on Sep 10, 2025
  5. added a commit that references this issue on Nov 26, 2025
    0f0dec1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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