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

Draft unit testing framework #470

Closed
wants to merge 5 commits into from
Closed

Draft unit testing framework #470

wants to merge 5 commits into from

Conversation

dyastremsky
Copy link
Contributor

This pull request is not meant to go in on its own. This branch is a placeholder to see if we want this structure for unit testing.

These files are copied from Model Analyzer until there is time to create a testing infrastructure specific to perf analyzer.

Note that I'll probably remove files for the MVP. For now, this leaves in all the mocks and tests that could be good for initial design. Once the initial tests are written, we can remove any that are unnecessary.

return device_attribute

@staticmethod
def dcgmGroupCreate(dcgm_handle, type_name, name):

Check notice

Code scanning / CodeQL

Explicit returns mixed with implicit (fall through) returns Note test

Mixing implicit and explicit returns may indicate an error as implicit returns always return None.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants