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

Tests and cleanup for #610 (output_variables fallback behavior) #613

Merged
merged 3 commits into from
Aug 25, 2023

Conversation

mattw-nws
Copy link
Contributor

[Short description explaining the high-level reason for the pull request]

Additions

  • Two tests for invalid entries in output_variables

Removals

  • Obsolete fallback condition code in Bmi_Multi_Formulation.cpp

Changes

Testing

Screenshots

Notes

Todos

Checklist

  • PR has an informative and human-readable title
  • Changes are limited to a single goal (no scope creep)
  • Code can be automatically merged (no conflicts)
  • Code follows project standards (link if applicable)
  • Passes all existing automated tests
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future todos are captured in comments
  • Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)
  • Reviewers requested with the Reviewers tool ➡️

Testing checklist (automated report can be put here)

Target Environment support

  • Linux

@mattw-nws
Copy link
Contributor Author

As a side note, the test logic in Bmi_Multi_Formulation_Test.cpp is probably overengineered at this point... we need tests to make sure the test code produces what it's supposed to. Seems like there should be an easier way.

@stcui007
Copy link
Contributor

I only have some rather trivial comments. On line 486 of Bmi_Multi_Formulation_Test.cpp, the comment line, the number of example scenarios should now be 6?

In the same file, line 635-636, it is probably better to remove one of the empty lines.

stcui007
stcui007 previously approved these changes Aug 18, 2023
@mattw-nws mattw-nws linked an issue Aug 22, 2023 that may be closed by this pull request
Copy link
Contributor

@PhilMiller PhilMiller left a comment

Choose a reason for hiding this comment

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

Looks fine to me.

Copy link
Contributor

@stcui007 stcui007 left a comment

Choose a reason for hiding this comment

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

The new change makes the codes in the function more generalized. Looks good to me.

@mattw-nws mattw-nws merged commit e9e674c into NOAA-OWP:master Aug 25, 2023
19 checks passed
mattw-nws added a commit that referenced this pull request Aug 25, 2023
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.

Fail execution if output_variables has invalid entries
3 participants