Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print the type name for aggregate values of user-defined types. #1398

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

copybara-service[bot]
Copy link
Contributor

Print the type name for aggregate values of user-defined types.

For example, say the user defines a fuzz test that takes a struct:

struct Foo {
  int bar = 0;
};

void TakesFoo(Foo foo) {}
FUZZ_TEST(MySuite, TakesFoo)
  .WithDomains(StructOf<Foo>(Arbitrary<int>()));

Previously, the printed value for this looked like {42}, and now it looks
like Foo{42}.

For example, say the user defines a fuzz test that takes a struct:

```
struct Foo {
  int bar = 0;
};

void TakesFoo(Foo foo) {}
FUZZ_TEST(MySuite, TakesFoo)
  .WithDomains(StructOf<Foo>(Arbitrary<int>()));
```

Previously, the printed value for this looked like `{42}`, and now it looks
like `Foo{42}`.

PiperOrigin-RevId: 681540261
@copybara-service copybara-service bot merged commit f57e2c0 into main Oct 2, 2024
@copybara-service copybara-service bot deleted the cl/680832143 branch October 2, 2024 19:00
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