-
Notifications
You must be signed in to change notification settings - Fork 748
Add gtest macros and matchers for Result<T> and Error. #12038
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12038
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New FailuresAs of commit ebbe105 with merge base f673a4b ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D77409312 |
144422b to
225ab71
Compare
Summary: Adds matcher support for Result and Error types, similar to absl::Status. Differential Revision: D77409312
|
This pull request was exported from Phabricator. Differential Revision: D77409312 |
Summary: Adds matcher support for Result and Error types, similar to absl::Status. Differential Revision: D77409312
Summary: Adds matcher support for Result and Error types, similar to absl::Status. Differential Revision: D77409312
225ab71 to
7151468
Compare
|
This pull request was exported from Phabricator. Differential Revision: D77409312 |
Summary: Adds matcher support for Result and Error types, similar to absl::Status. Differential Revision: D77409312
7151468 to
bcb62f6
Compare
|
This pull request was exported from Phabricator. Differential Revision: D77409312 |
bcb62f6 to
7f45bf0
Compare
Summary: Adds matcher support for Result and Error types, similar to absl::Status. Differential Revision: D77409312
|
This pull request was exported from Phabricator. Differential Revision: D77409312 |
Summary: Pull Request resolved: pytorch#12038 Adds matcher support for Result and Error types, similar to absl::Status. Differential Revision: D77409312
7f45bf0 to
a2a7476
Compare
Summary: Adds matcher support for Result and Error types, similar to absl::Status. Differential Revision: D77409312
a2a7476 to
3ee5d59
Compare
|
This pull request was exported from Phabricator. Differential Revision: D77409312 |
Summary: Pull Request resolved: pytorch#12038 Adds matcher support for Result and Error types, similar to absl::Status. Differential Revision: D77409312
3ee5d59 to
e962c21
Compare
| namespace internal { | ||
| namespace { | ||
|
|
||
| constexpr const char* toString(const Error error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you put this in Error? Would be easier for future changes to Error also change this API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also this can be templatized
larryliu0820
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test for real code (not error_matchers_test.cpp) that uses these matchers?
Summary: Adds matcher support for Result and Error types, similar to absl::Status. Reviewed By: larryliu0820 Differential Revision: D77409312
e962c21 to
dfd68f5
Compare
|
This pull request was exported from Phabricator. Differential Revision: D77409312 |
dfd68f5 to
87dd7a5
Compare
Summary: Adds matcher support for Result and Error types, similar to absl::Status. Reviewed By: larryliu0820 Differential Revision: D77409312
|
This pull request was exported from Phabricator. Differential Revision: D77409312 |
Summary: Pull Request resolved: pytorch#12038 Adds matcher support for Result and Error types, similar to absl::Status. Reviewed By: larryliu0820 Differential Revision: D77409312
87dd7a5 to
11a8344
Compare
Summary: Adds matcher support for Result and Error types, similar to absl::Status. Reviewed By: larryliu0820 Differential Revision: D77409312
11a8344 to
7717eb7
Compare
Summary: Pull Request resolved: pytorch#12038 Adds matcher support for Result and Error types, similar to absl::Status. Reviewed By: larryliu0820 Differential Revision: D77409312
|
This pull request was exported from Phabricator. Differential Revision: D77409312 |
7717eb7 to
ebbe105
Compare
Differential Revision: D77409312 Pull Request resolved: pytorch#12038
Summary: Adds matcher support for Result and Error types, similar to absl::Status.
Differential Revision: D77409312