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

Bring config package unit tests past 80% coverage #14

Merged
merged 2 commits into from
Oct 25, 2021

Conversation

heyealex
Copy link
Contributor

@heyealex heyealex commented Oct 25, 2021

Add and reorganize tests for the config package. Also includes a minor fix error messages in the resreader package tests.

develop branch coverage:
ok hpc-toolkit/pkg/config (cached) coverage: 44.5% of statements

Coverage with this PR:
ok hpc-toolkit/pkg/config 0.035s coverage: 80.8% of statements

@heyealex heyealex requested a review from cboneti October 25, 2021 21:35
Copy link
Member

@cboneti cboneti left a comment

Choose a reason for hiding this comment

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

A few comments. Not sure if actionable. PTAL.

pkg/config/config_test.go Show resolved Hide resolved
pkg/config/config_test.go Outdated Show resolved Hide resolved
Update test for ExportYamlConfig so that it doesn't log fatal, but
rather tests the created files info to validate it was created
correctly.
@heyealex
Copy link
Contributor Author

heyealex commented Oct 25, 2021

@cboneti Feedback has been answered in the comments or addressed in the last commit. PTAL

@heyealex heyealex merged commit 5484dc1 into GoogleCloudPlatform:develop Oct 25, 2021
@heyealex heyealex deleted the config-test-coverage branch October 25, 2021 23:26
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