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

feat(fluxtest): add support for testing/expect planner rules #20662

Merged
merged 1 commit into from
Feb 1, 2021

Conversation

jsternberg
Copy link
Contributor

Related to #3336.

@jsternberg jsternberg requested review from a team and scbrickley and removed request for a team February 1, 2021 18:33
Comment on lines -117 to -120
// Use testing.inspect call to get all of diff, want, and got
inspectCalls := stdlib.TestingInspectCalls(pkg)
pkg.Files = append(pkg.Files, inspectCalls)

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you explain why these lines are no longer necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They were an error to include. The testcase statement doesn't use these. This call is only used for the test statement and so when there are no test statements this produces an invalid file.

@jsternberg jsternberg merged commit 719c849 into master Feb 1, 2021
@jsternberg jsternberg deleted the feat/expect-planner-rules branch February 1, 2021 21:53
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.

2 participants